mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-11 20:00:30 +01:00
CoreStoreObject as struct? #332
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 @shift00 on GitHub (Jun 17, 2020).
Hi,
I need some help.
I want to operate with many objects from the database, for example (by steps):
My problem is that MyDataModel inherits from CoreStoreObject and can't be structurally. After the stress test (saving 200+ objects in DB and sending (read/edit/delete) 400+ objects from DB in 1s) I have huge memory load.
Did anyone have a problem with dumping used entities?
@Saklad5 commented on GitHub (Jun 17, 2020):
Model objects are fundamentally reference types rather than value types, as they reference an object in a context.
That isn’t the cause of the memory issue, though: you should make sure you aren’t referencing the objects after they are no longer needed.
@shift00 commented on GitHub (Jun 22, 2020):
Solved.