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):
save 100 objects as [MyDataModel],
read last 50 MyDataModel objects from the database,
change some property in each MyDataModel,
remove previously sent 50 MyDataModel objects from the database.
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?
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):
- save 100 objects as [MyDataModel],
- read last 50 MyDataModel objects from the database,
- change some property in each MyDataModel,
- remove previously sent 50 MyDataModel objects from the database.
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?
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.
@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.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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.