Core Data Notes from iPhone Tech Talk

21 Nov
2009

Some notes I thought they are important, delivered to you from Hamburg :)

  • design with ui in mind
  • normalisation <-> denormalisation
  • willful introduction of repetition for performance
  • dont do inheritance
  • put blogs where they belong
  • prefetching to get attributes more instantly
  • setrelationshipkeypathsforprefetching, pass nsarray with “Songs” …
  • batching: only deal with whats needed
  • [fetch setFetchBatchSize:10]
  • Nsarray still responds to count!!!
  • Array faulting those objects in to you
  • partial faulting – get a slice of the data
  • fetch setPropertiesToFetch[arrayWithObjects@"Title",@"xxy"]
  • nsfetchedresultscontroller, set caching name to nil for searh coltroller
  • sections are cached to disk
  • one managed object context per thread!!!

Michael Jurewitz
jurewitz@apple.com

Related posts:

  1. Multithreading with Core Data
  2. Debugging Core Data
  3. Core Animation Crash: Attempt to create two animations for cell
  4. Better iPhone/Mac logging with GTMLogger
  5. Learning Foundation

Comment Form

top

Switch to our mobile site