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

Magento 2 slow reindex using MariDB #841

Open
nkajic opened this issue Feb 5, 2025 · 0 comments
Open

Magento 2 slow reindex using MariDB #841

nkajic opened this issue Feb 5, 2025 · 0 comments
Labels
bug Something isn't working docker-images

Comments

@nkajic
Copy link

nkajic commented Feb 5, 2025

Version of Warden

0.15.0

Operating System and Installation Method

MacOS 15.3

Image

Magento 2 templates

Describe the Bug

Hi all,

Magento 2 configuration for MariaDB does not follow Adobe recommendations.
Specially visible on large projects.

Please see
https://experienceleague.adobe.com/en/docs/commerce-cloud-service/user-guide/configure/service/mysql
under "Configure MySQL database".

Please add following configuration for MariaDB
optimizer_switch: "rowid_filter=off"
optimizer_use_condition_selectivity: 1

Not setting those variables result in x10 or x20 order of magnitude in reindexing time for Category products alone.
Also seen unproperly configured on many production webshops

More context:
Same problem occurred on different project
Mark Shust's Docker Configuration for Magento
Fix possible slow reindexing on MariaDB no. 705
markshust/docker-magento#705

To Reproduce

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected Behavior

No response

Additional context

No response

@nkajic nkajic added bug Something isn't working docker-images labels Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working docker-images
Projects
Status: No status
Development

No branches or pull requests

1 participant