Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"apply CacheResourceMarshaller to doctrine_dbal adapter, add cache marshaller to MoneyCurrency #2373

Merged
merged 1 commit into from
Sep 22, 2023

Conversation

solverat
Copy link
Contributor

@solverat solverat commented Sep 18, 2023

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets --

This PR fixes a quite huge memory issue, when it comes to cache marshalling of doctrine entities. Without it, out of memory exceptions will occur randomly while unserializing cache entries.

Background: In our case, we're dealing with large currency entities (lot of countries as relation for example), so we had cache entries up to 4-5mb each.

This PR fixes two things ( + performance bonus):

  • Add CacheResourceMarshaller to pimcore.cache.adapter.doctrine_dbal Service
  • Add marshalling to MoneyCurrency

@dpfaffenbauer dpfaffenbauer added this to the 4.0.0 milestone Sep 22, 2023
@dpfaffenbauer dpfaffenbauer merged commit 792e317 into coreshop:3.1 Sep 22, 2023
@dpfaffenbauer
Copy link
Member

@solverat thanks

@solverat solverat deleted the marshall_fix branch September 22, 2023 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants