Faulting and save
You fetched 10,000 objects from Core Data and memory barely moved, and then it grows a little as you scroll the list. Explain what's going on inside.
You fetched 10,000 objects from Core Data and memory barely moved, and then it grows a little as you scroll the list. Explain what's going on inside.
A fetch creates only shells (faults) and fills them from the row cache or SQLite when you touch a property (faulting). That's why memory grows a little at a time as cells read values while you scroll.
PersistenceShort answerIntro
A new iOS project has to store a favorites list, the login session, downloaded PDFs, and…
#core-data
PersistenceShort answerBasics
Which requirements push you to Core Data (or SwiftData) instead of UserDefaults or a…
#core-data
PersistenceShort answerBasics
You have a bug where a screen backed by Core Data adds an item but the list never…
#core-data
PersistenceMultiple choiceBasics
This is a news app on Core Data. You fetched an Article on a background context…
#core-data