Replies: 1 comment 1 reply
-
This comes up from time to time: the easiest fix usually is to not pass the model, just the primary key, and simply load it yourself. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description:
Is there an issue with serializing models when they have a lot of relations?
We started to get a lot of memory size limit errors.
Our memory size is 512M which should be more than enough.
Is the serializemodel trying to get a cyclical relationship and running out of memory that way?
Is there anyway to not load the relations when you use the serializemodels? We actually don't need any relation.
Steps To Reproduce:
Create a table with 100 fields.
Relate it to another table with 100 fields.
Rinse and repeat 5 times.
Trigger an event that uses the model and the serializemodel trait.
The memory usage is very big.
Beta Was this translation helpful? Give feedback.
All reactions