• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
CoreData and NSDate searches on date fields
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CoreData and NSDate searches on date fields


  • Subject: CoreData and NSDate searches on date fields
  • From: Andrew Bush <email@hidden>
  • Date: Wed, 17 Oct 2007 23:08:30 +1300

Hi all,

I am performing a search on a coredata field of type Date, it is a search across a date range..ie, 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


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: What triggs dataRepresentationOfType?
  • Next by Date: Re: What triggs dataRepresentationOfType?
  • Previous by thread: Re: What triggs dataRepresentationOfType?
  • Next by thread: CIImage <-> bitmap data <-> NSImage
  • Index(es):
    • Date
    • Thread