Hi Chris,

On 23/09/2010, at 04:27, Chris Hanson wrote:

> On Sep 22, 2010, at 11:39 PM, Tito Ciuro wrote:
> 
>> I believe (please correct me if I'm wrong) that Core Data stores the data 
>> atomically for both, XML and binary formats. That, if I'm not mistaken 
>> requires the datafile to be read in memory. Not so with NanoStore:
> 
> Not really so with Core Data either.
> 
> Core Data has the concept of both atomic and non-atomic persistent stores.
> 
> Core Data’s binary and XML persistent stores are atomic, so they are read and 
> written like documents (all at once).  Developers can also create your own 
> kinds of atomic persistent stores by subclassing NSAtomicStore.  (Also, the 
> XML persistent store is not available on iOS, only on Mac OS X.)
> 
> Core Data’s SQLite persistent store is quite explicitly not atomic: It uses 
> transactions against SQLite.  The entire persistent store does not need to be 
> read into memory, only the data requested; the entire persistent store is not 
> written upon a save, only the data changed.
> 
>  -- Chris

As I mentioned to Thomas, I left part of the sentence out, so thanks for 
clarifying this. What I meant was precisely what you have written so eloquently.

NanoStore is also explicitly not atomic: It uses transactions against SQLite as 
well storing and indexing the dictionaries.

Thanks Chris,

-- Tito_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to