Re: CoreData Indexing is it possible?
Re: CoreData Indexing is it possible?
- Subject: Re: CoreData Indexing is it possible?
- From: "Giovanni Donelli" <email@hidden>
- Date: Mon, 17 Sep 2007 23:33:26 +0200
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:
>
>
> 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:
> @obviousmatter.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