CoreData - large data set is slow to load on app launch - optimisation tips?
CoreData - large data set is slow to load on app launch - optimisation tips?
- Subject: CoreData - large data set is slow to load on app launch - optimisation tips?
- From: Simon Liu <email@hidden>
- Date: Sat, 3 Dec 2005 17:01:02 +0000
Hi,
My app's single SQL store contains over 5,000 instances of an entity,
each with an associated image (jpeg data). There are also other
entities, relationships, etc. The SQL store comes in at around 80MB.
I find that on launching the app, I get the spinning beach ball as the
store is loaded. This goes on between 30-50 seconds. Obviously an
issue for users.
On launching my app, the main app window which is visible at launch is
similar to iTunes. A main table will list all the records, and is
populated by an ArrayController which has been set to the Entity
class. The table also has a predicate and a sortDescriptor. Is the
arrayController the cause of the delay? Is there a better way of
populating the controller so that it doesn't try and load everything
in one go? (Even though I want users to be able to see all their table
entries on launch).
Is it more efficient to have two stores, one dedicated for textual
data, and the other for data blobs such as images? I haven't worked
with Cross-store relationships yet but I see there is an example
called 'iClass'.
Ultimately, I want the app to be able to scale to 50,000 records
without that much of a performance hit. Appreciate any tips. Thanks.
Regards,
Simon
_______________________________________________
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