We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Background is a shopware 6.4 installation. We have 3.4 million entries in the mysql table enqueue.
A query like: DELETE FROM enqueue WHERE delivery_id = '1ea18942-283b-4cfd-a24a-1bf9917a9d0f'
takes 20-60 seconds. CPU load is by 100%. So this provides a race condition as the enqueue-table is growing fast and deleting entries is very slow.
Creating directly in mysql an index on delivery_id solves the problem. Queries are again done in milliseconds.
I think, there should be added an index on delivery_id in enqueue/dbal/DbalContext.php
The text was updated successfully, but these errors were encountered:
php-enqueue#1190 add index on delivery_id to prevent slow queries
946f48f
Merge pull request #1191 from commercewerft/master
3880257
#1190 add index on delivery_id to prevent slow queries
No branches or pull requests
Background is a shopware 6.4 installation. We have 3.4 million entries in the mysql table enqueue.
A query like: DELETE FROM enqueue WHERE delivery_id = '1ea18942-283b-4cfd-a24a-1bf9917a9d0f'
takes 20-60 seconds. CPU load is by 100%. So this provides a race condition as the enqueue-table is growing fast and deleting entries is very slow.
Creating directly in mysql an index on delivery_id solves the problem. Queries are again done in milliseconds.
I think, there should be added an index on delivery_id in enqueue/dbal/DbalContext.php
The text was updated successfully, but these errors were encountered: