Re: CoreData pagination

2008-06-24 Thread Ian
Here are my findings thanks to the great advice to all those that answered. First and foremost - I was testing on an elderly G5 iMac, so fetching ~million objects was taking 4 minutes. I think this is definitely down to paging the VM as someone suggested. Here on my main machine (8 cores, gi

Re: CoreData pagination

2008-06-23 Thread Ben Trumbull
Anyway, is there any way to query CoreData in chunks? I have a very large CoreData SQl store (>1 million) of managed objects and it's taking for ever (well, tens of minutes) to load it all in, never mind to search through it all. (1) Why do you want to load it all in ? (2) Why won't you let Co

Re: CoreData pagination

2008-06-23 Thread Jim Correia
On Jun 23, 2008, at 8:53 PM, Quincey Morris wrote: The problem is that Core Data doesn't use rows -- it doesn't have any intrinsic ordering of objects (that's why unsorted results are always sets, not arrays). There's no general concept of the "next" 1 objects. To query in chunks, you

Re: CoreData pagination

2008-06-23 Thread Quincey Morris
On Jun 23, 2008, at 17:11, Ian wrote: Hi all, Anyway, is there any way to query CoreData in chunks? I have a very large CoreData SQl store (>1 million) of managed objects and it's taking for ever (well, tens of minutes) to load it all in, never mind to search through it all. NSFetchReq

Re: CoreData pagination

2008-06-23 Thread Jim Correia
On Jun 23, 2008, at 8:11 PM, Ian wrote: I know this has been asked before... I've been searching and searching and RTFMing so I've seen the paper-trail of askees over the years... Anyway, is there any way to query CoreData in chunks? I have a very large CoreData SQl store (>1 million) of

CoreData pagination [was: CoteData pagination]

2008-06-23 Thread Ian
LOL - CoreData, not CoteData, you knew what I meant I'm sure! On 24 Jun 2008, at 01:11, Ian wrote: Hi all, I know this has been asked before... I've been searching and searching and RTFMing so I've seen the paper-trail of askees over the years... Anyway, is there any way to query CoreDat