mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-11 20:00:30 +01:00
Memory leak for ContiguousArrayStorage<NSPersistentStore> #225
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @DmitrijMaz on GitHub (Jul 27, 2018).
Hi,
Prerequisites:
CoreStore (5.1.1)
Sample
NSManagedObjectsubclass. Others use the same principle for importing/updatingEvery
NSManagedObjectsubclass haveuniqueConstraintssetup (usually itsid)Core store is setup using the following code:
I have 5 screens that use
ListMonitorto display the same object, just with a diffrentWhereclausesThe data is loaded from an API and imported using the code i've provided.
The results are the following:

Memory instrument trace:

Any help would be much appreciated. Contact me if more detailed information is needed.
Thanks!
@JohnEstropia commented on GitHub (Jul 28, 2018):
Hi, thanks for the detailed info. May I ask how
getStorage()creates yourSQLiteStore?Also, are
Transferobjects managed in theSQLiteStoreor theInMemoryStore?@ghost commented on GitHub (Jul 28, 2018):
Its created using local option storage with .recreateStoreOnMismatch
Everything is in sqlite store
@DmitrijMaz commented on GitHub (Jul 30, 2018):
I was doing all this in
defaultmode