• 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
Validating unique objects in CoreData
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Validating unique objects in CoreData
      • From: Jerry Krinock <email@hidden>
    • Re: Validating unique objects in CoreData
      • From: Roland King <email@hidden>
  • Prev by Date: Re: get the list of controls in a NSView
  • Next by Date: Re: Best class for pixel-level image processing?
  • Previous by thread: Re: Replacing model objects using an NSArrayController
  • Next by thread: Re: Validating unique objects in CoreData
  • Index(es):
    • Date
    • Thread