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:
- Multithreading with Core Data
- Debugging Core Data
- Core Animation Crash: Attempt to create two animations for cell
- Better iPhone/Mac logging with GTMLogger
- Learning Foundation