• 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
Re: CoreData Indexing is it possible?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CoreData Indexing is it possible?


  • Subject: Re: CoreData Indexing is it possible?
  • From: Diederik Hoogenboom <email@hidden>
  • Date: Tue, 18 Sep 2007 07:28:25 +0200

AFAIK it is not mentioned in any public documentation. It has been mentioned once or twice on this list though.
It is not really an API; it is more a "tag" in your model that will trigger the index to be created when creating your store.


Diederik

--
Diederik Hoogenboom
Obvious Matter - DiskLibrary for Mac
http://www.obviousmatter.com



On 17-sep-2007, at 23:33, Giovanni Donelli wrote:

That's great! Thank you for your reply. Is that a documented functionality?

I have google it and it seems there is no documentation on it, is it a private API?

once again, thank you!
Giovanni


On 9/17/07, Diederik Hoogenboom < email@hidden> wrote:
It is possible to add a index using the Model Designer: create an attribute key called "_NSCreateIndex" without a value for the attribute for which you want the index to be created.



Some remarks:


- Inserts and saves might become slower as the index has be to maintained.
- Don't expect noticeable improvements for data sets under 200k objects.



Kind regards,


Diederik


-- Diederik Hoogenboom Obvious Matter - DiskLibrary for Mac http://www.obviousmatter.com




On 17-sep-2007, at 12:58, Alexey Zakhlestin wrote:

well, if you use sqlite as a coredata backend, that is certainly
possible to do (at least by using sqlite-native calls, not sure if
coredata has native interface for that)


On 9/16/07, Giovanni Donelli < email@hidden> wrote:
Dear Cocoa Gurus, first I have to say that Core Data is awesome :-)


When I took my Comp. Science class about database they taught me that by
building an index on a specific table attribute the search can
be dramatically speeded up (if the search involves that attribute).



Is there a way to do the same think with a core data database? I have a
table with 10 attributes, but the user can search only by using one. It
would be great to optimize the table for the retrieval of that specific
attribute. Is that possible?



Thank you!


Giovanni Donelli _______________________________________________


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:
40gmail.com



This email sent to email@hidden






--
Alexey Zakhlestin
http://blog.milkfarmsoft.com /
_______________________________________________


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:
40obviousmatter.com



This email sent to email@hidden






_______________________________________________

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


  • Follow-Ups:
    • Re: CoreData Indexing is it possible?
      • From: "I. Savant" <email@hidden>
References: 
 >CoreData Indexing is it possible? (From: "Giovanni Donelli" <email@hidden>)
 >Re: CoreData Indexing is it possible? (From: "Alexey Zakhlestin" <email@hidden>)
 >Re: CoreData Indexing is it possible? (From: Diederik Hoogenboom <email@hidden>)
 >Re: CoreData Indexing is it possible? (From: "Giovanni Donelli" <email@hidden>)

  • Prev by Date: Re: Cocoa frameworks/class diagrams or posters
  • Next by Date: Recreating XCode run log behavior in an NSTextView
  • Previous by thread: Re: CoreData Indexing is it possible?
  • Next by thread: Re: CoreData Indexing is it possible?
  • Index(es):
    • Date
    • Thread