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

perf(core): upgrade sql requests for more performant memory usage with big datasets #2741

Conversation

monrostar
Copy link
Contributor

@monrostar monrostar commented Mar 15, 2024

Description

This upgrade is needed if you want to remove a product with more than 200 variants and 7 languages. If you leave this data in one SQL query, the memory consumption on the server for data processing reaches 10k MB in the test environment more than 800mb. The presented improvement reduces memory consumption to 1-5mb

Breaking changes

Does this PR include any breaking changes we should be aware of?

Screenshots

Before

image

After

Screenshot 2024-03-14 at 16 43 42

Checklist

📌 Always:

  • I have set a clear title
  • My PR is small and contains a single feature
  • I have checked my own PR

👍 Most of the time:

  • I have added or updated test cases
  • I have updated the README if needed

@michaelbromley michaelbromley merged commit 65888cb into vendure-ecommerce:minor Mar 18, 2024
9 of 12 checks passed
@michaelbromley
Copy link
Member

Wow! Incredible how much of an impact this little change makes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants