Validating unique objects in CoreData
Validating unique objects in CoreData
- Subject: Validating unique objects in CoreData
- From: malcom <email@hidden>
- Date: Fri, 12 Feb 2010 12:45:48 +0100
Hello,
I would use CoreData in order to mantain an archive of objects: each object contains an attribute called "uuid"; in the same db only one object can have the same attribute value. This mean I should validate the proposed new object to insert and check if the another object with the same uuid is inside the storage. I've implemented it with a fetch request but it's so slow when there are lots of objects to insert (my db contains around 30,000 objects).
Any idea to improve performance of this check? Can CoreData support unique attributes as like key in sql database?
Thanks
mmc_______________________________________________
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