~/talk

High performance Core Data

Talkat UIKonf 2014 · 2014-05-14..05-16· [ios]
links:none on file
slides:none on file

Practical Core Data fixes: use Instruments and sqlite3 to measure real SQL, set fetchBatchSize (example cut memory from 125MB to 20MB), use NSExpression/grouping for counts instead of pulling 60,000 objects, prefetch relationships and use objectID-only background fetches, normalize and tokenise searchable text, store thumbnails on the main entity and full blobs with allowsExternalStorage, and optimize imports by sorting IDs and batching (example import: 5 min → 1 min → <1 min) or use a second PSC for parallel reads.

AI-written summary · about

  1. 0:00Introduction to Core Data
  2. 1:08Core Data basics and setup
  3. 4:36Measuring Core Data performance
  4. 8:23Optimizing fetches with batch size
  5. 11:32Efficient data summation with NSExpression
  6. 13:39Prefetching relationships for speed
  7. 14:42Background fetching techniques
  8. 15:03Writing efficient predicates
  9. 16:47Improving search performance
  10. 19:13Data model design tips
  11. 21:02App launch and migrations
  12. 21:22Handling bulk updates
  13. 22:25Importing data efficiently
  14. 28:53Memory management techniques
  15. 29:13Concurrency model options
  16. 34:48Summary and best practices
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.