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

Indexing performance problem on MySQL 8 #3121

Open
romainruaud opened this issue Nov 22, 2023 · 2 comments
Open

Indexing performance problem on MySQL 8 #3121

romainruaud opened this issue Nov 22, 2023 · 2 comments
Assignees

Comments

@romainruaud
Copy link
Collaborator

Since this commit : 8018fce

And the integration of the patch provided by @Wohlie we identified an issue on a client running MySQL 8.

The indexing process became suddenly very slow (from 2h to 20h) after upgrading Elasticsuite.

It seems that the query generated by the patch is problematic on MySQL 8.

Here is the explain on the client server :

image

For unknown reasons, it seems that it will use the index on "STORE_ID".

Here is the explain on another client server running MariaDB :

image

Here it uses the index on ATTRIBUTE_ID.

@romainruaud romainruaud self-assigned this Aug 1, 2024
@robinero
Copy link

robinero commented Sep 4, 2024

While we are not experiencing the extremely slow indexation mentioned here, we are experiencing some reduced indexing performance caused by 8018fce.

As a workaround we have applied a patch that reverts the code added in this commit.
I was wondering if there is some new information available, so that we do not have to patch to the module.

@romainruaud
Copy link
Collaborator Author

Hi @robinero

no, actually no news, for this client we also reverted the patch. We investigated but did not find anything why MySQL 8 was not dealing properly with the join clauses.

I guess you're on MySQL 8 as well ?

Regards

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

No branches or pull requests

2 participants