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

Re: CoreData issue


  • Subject: Re: CoreData issue
  • From: David Emme <email@hidden>
  • Date: Thu, 7 Sep 2006 05:34:13 -0700


On Sep 7, 2006, at 5:13 AM, Patrick Perroud wrote:

I just need to fetch the oiginal data in its original unsorted order.

In a relational database (I know, CoreData is not a database, but it sometimes plays one on TV), there is by definition no such thing as the "original data *in its original unsorted order*". I found that out using MySQL, where I wrote data into a temp table in the desired order, then when I fetched it the order of the result was not what I had written!


Moral of the story: if you need the data in a certain order, you must arrange for field(s) and sorting to obtain that order. You cannot rely on retrieving the data in the order you wrote it.

HTH,
-Dave

--
I started out with nothing, and I still have most of it.




Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

  • Follow-Ups:
    • Re: CoreData issue
      • From: Patrick Perroud <email@hidden>
References: 
 >CoreData issue (From: Patrick Perroud <email@hidden>)
 >Re: CoreData issue (From: Andrew Merenbach <email@hidden>)
 >Re: CoreData issue (From: Patrick Perroud <email@hidden>)

  • Prev by Date: Re: CoreData issue
  • Next by Date: Re: CoreData issue
  • Previous by thread: Re: CoreData issue
  • Next by thread: Re: CoreData issue
  • Index(es):
    • Date
    • Thread