• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to manage a separate data file while saving an NSPersistentDocument or during schema migration
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to manage a separate data file while saving an NSPersistentDocument or during schema migration


  • Subject: Re: How to manage a separate data file while saving an NSPersistentDocument or during schema migration
  • From: Quincey Morris <email@hidden>
  • Date: Fri, 16 Jan 2009 18:58:42 -0800

On Jan 16, 2009, at 17:26, Barry Wark wrote:

In fact, that's how I started. It works fine (using a separate entity
for the data), and performance was fine. Unfortunately, the backup
system at the deployment site backs up entire changed files (rather
than binary diffs), so the continuous changes to flags and metadata in
the data model during analysis force a back up of all the original
BLOB data as well... order 100GB/day. Thus, we've decided to go with
the separate file solution. Since this is, in fact, the Apple
recommended approach, I was surprised it wasn't easier to implement.

If the BLOBs themselves are not being changed (at least by this application on a per-document basis), then you could keep a "library" of BLOB sets in the Application Support folder or somewhere shared.


Or, even if the BLOBs are changed sometimes, you could try putting them in a separate persistent store that you add to your managed object context, and use cross-store links. It's *possible* that a simple Save will not touch the BLOB store if the BLOBs haven't changed (though I have no idea if that's so or not). In that case, your backup system won't try to backup the unchanged store. You'd have to try this out for feasibility, and it means messing with cross-store links, but the big win is of course that you don't have to get your hands dirty in the save process at all (I think).


_______________________________________________

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


References: 
 >How to manage a separate data file while saving an NSPersistentDocument or during schema migration (From: "Barry Wark" <email@hidden>)
 >Re: How to manage a separate data file while saving an NSPersistentDocument or during schema migration (From: Quincey Morris <email@hidden>)
 >Re: How to manage a separate data file while saving an NSPersistentDocument or during schema migration (From: "Barry Wark" <email@hidden>)

  • Prev by Date: Re: Displaying multiple core data relationships in NSOutlineView
  • Next by Date: string bounding rect methods
  • Previous by thread: Re: How to manage a separate data file while saving an NSPersistentDocument or during schema migration
  • Next by thread: .DMG Keeps Getting Bigger After Converting?
  • Index(es):
    • Date
    • Thread