-
Notifications
You must be signed in to change notification settings - Fork 93
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
[shopsys] entities are refreshed after product visibility recalculations #2202
Conversation
grossmannmartin
commented
Jan 22, 2021
Q | A |
---|---|
Description, reason for the PR | entities are, by default, not refreshed in identity map after update with native query. This PR add a manual refresh of loaded entities, so it's safe to work with those entites after recalculations (=native queries). |
New feature | No |
BC breaks | No |
Fixes issues | closes #2108 |
Have you read and signed our License Agreement for contributions? | Yes |
packages/framework/src/Model/Product/ProductVisibilityRepository.php
Outdated
Show resolved
Hide resolved
bf5324f
to
91fe882
Compare
Hi, I was asked to check if this PR resolves scenario described in #2108. I have a question about performance. Couldn't it have an impact on performance while processing large amount of data, e.g. However, I like this solution with provided test and it solves described problem. 👍 |
Thank you for looking at this! I'm afraid it's the price for updated data. |
91fe882
to
811f274
Compare
I understand. I'm thinking about giving an option to disable refreshing entities on purpose. Adding parameter to In cron modules, entities won't be refreshed Does it make sense ? |
811f274
to
8655282
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |