Skip to content

Magento 2 slow reindex using MariaDB #841

@nkajic

Description

@nkajic

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 x100 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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions