Re: NSInMemoryStoreType: Not really "persistent", is it?
Re: NSInMemoryStoreType: Not really "persistent", is it?
- Subject: Re: NSInMemoryStoreType: Not really "persistent", is it?
- From: Dave Dribin <email@hidden>
- Date: Wed, 22 Oct 2008 09:57:03 -0500
On Oct 21, 2008, at 6:53 PM, Bill Bumgarner wrote:
The in memory store is actually extremely useful for caches and as a
backing store for applications that read/write to/from some kind of
server -- typically an XML RPC of some type -- that wants to take
full advantage of CD's object graph management infrastructure. The
various change hooks on the MOC and coordinator make it possible to
easily mirror the changes out to the wire protocol or update the
local cache -- the in memory persistent store -- with changes pulled
from the other side.
I've been using the in-memory persistent store for unit testing a lot
lately. In setUp and tearDown, I create and destroy a full core data
stack with an in-memory store. It's very fast, and you're guaranteed
a clean slate for each unit test.
-Dave
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden