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

Add clearing of different document manager to reindex command #712

Conversation

alexander-schranz
Copy link
Member

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Fixed tickets fixes #issuenum
Related issues/PRs #issuenum
License MIT

What's in this PR?

Add clearing of different document manager to reindex command.

Why?

This should avoid usage of memory. Tested project did decrease memory usage from 970mib -> 480mib. I tried to also clearing the entityManager and disable the sqllogger interesting that ended in more usage of the Memory instead of less so I kept the sqllogger disabling out.

@alexander-schranz alexander-schranz force-pushed the enhancement/reduce-used-reindex-memory branch from 54ec688 to 8fdd4b2 Compare December 2, 2024 11:07
@alexander-schranz alexander-schranz added the Performance Problems with performance label Dec 2, 2024
Command/ReindexCommand.php Show resolved Hide resolved
@alexander-schranz alexander-schranz merged commit 88f666c into sulu:2.6 Dec 2, 2024
8 of 9 checks passed
@alexander-schranz alexander-schranz deleted the enhancement/reduce-used-reindex-memory branch December 2, 2024 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Performance Problems with performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants