• 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 Distinct
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CoreData and Distinct


  • Subject: CoreData and Distinct
  • From: Marc Monguio <email@hidden>
  • Date: Tue, 15 Nov 2005 17:31:27 -0800

I have 1000 records in my cocoa sqlite DB. Is there any way to do build an NSPredicate to retrieve an array of nsmanagedobject with a distinct attribute values from a persistent store?

When trying to do it through bindings using the "email@hiddenName" it was very slow (spinning wheel appears) but querying directly the SQLite3 I get results very fast. Maybe is that bindings don't take advantage of the 'distinct' in SQLite ?

$ sqlite3 Library.sql "select distinct ZFIRSTNAME from ZPERSON ORDER BY ZARTISTNAME"
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Prev by Date: Distributed Objects and KVO/KVC
  • Next by Date: Re: Reference to entity name in NSPredicate?
  • Previous by thread: Re: Distributed Objects and KVO/KVC
  • Next by thread: .mailbundle question
  • Index(es):
    • Date
    • Thread