CoreData and NSDate searches on date fields

  • Hi all,

    I am performing a search on a coredata field of type Date, it is a
    search across a date, I want every record whose start date
    and end dates are within the range specific.

    There are many thousands of records to be compared, and the search is
    currently very slow.

    I have added an index using the _CreateIndex tag in the attributes,
    and this has helped a lot, but it is still too slow for my needs.

    I was wondering how the search/date storage is implemented and
    whether I would be better off shifting to specifying the type as a
    NSTimeInterval/double and searching on that?

    is the date converted to a number for storage and searching anyways?
    or would I improve the speed by doing it manually?

    thanks for any help.

    Yours cheerfully,

    Andrew Bush
previous month october 2007 next month
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        
Go to today