Progmatically Caching Objects from a CoreData SQLite Store?
Progmatically Caching Objects from a CoreData SQLite Store?
- Subject: Progmatically Caching Objects from a CoreData SQLite Store?
- From: Colin Cornaby <email@hidden>
- Date: Fri, 24 Feb 2006 13:16:49 -0800
Hi,
I'm working with an extremely large CoreData database, containing at
present 8120 managed objects. It's currently a SQLite store, except I
would like to have the entire object tree available in memory for
access in order to speed up the user experience. I was thinking I
could do something like spawn a thread on launch that goes through
and loads pieces of the object tree into memory, allowing the user to
continue using the application and work with the on drive store,
while working with objects in memory as they become available in memory.
I'm assuming CoreData caches objects in memory as they're accessed
and writes back to drive as needed, but it seems to me if this
caching does exist the objects don't seem to be cached for the entire
lifespan of the application.
Does anyone know of a good way to build a cache in memory of an on
disk store? Creating an in memory store and copying each object in
one by one seems like an awful way to do it. Attempting to add an in
memory store to the persistent store coordinator just seems to raise
issues when I try to save. So I'm just looking for general pointers
on how maybe other people have dealt with this issue.
---------------------------
Colin Cornaby
White Magic Labs - http://whitemagiclabs.com
_______________________________________________
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