-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Default to "Full texts" when running ANALYZE #17482
Comments
And the same for |
This seems like a reasonable request. |
Good |
@williamdes @MauricioFauth I was looking at the code here, seems that However, -- Anyway, is this how you'd implement this Feature Request?
|
Hi @nunoperalta |
@williamdes Thanks |
Probably, @iifawzi can I have some of your precious help please? |
Yes, this definitely should be fixed in the parser, I've not really looked over all the comments, but I will take a deeper look later this weekend. side note: I've been inactive for a while, but I'm planning to get back on track, starting this weekend, hopefully. I'm just afraid that the solution you proposed might break other parts that depend on the |
Thank you very much, folks. |
we can get benefit from the
I didn't understand the issue mentioned here, is it a separate issue? and what its impact on this feature request. I might be missing something. btw, we have no implementation for the EXPLAIN statement yet |
@iifawzi - Thank you for looking into this. The issue is that
I'm just afraid that If you don't think that can cause an issue, then great! I'm not familiar at all with the |
I got it, my bad, thank you for elaborating on this. You're right, this's definitely an issue from the parser's point of view if the |
Summing this up: 1- We have 2- We have
That being said, All statements from the parser point of view should be detected as This feature request can be fixed then by checking if the query type is what do you think? @williamdes @nunoperalta? |
That seems spot on, @iifawzi ! Thank you very much. Just to let you know in advance, please note that checking for Thank you once more. Have a great weekend 👍🏼👍🏼 |
…ents Ref: phpmyadmin/phpmyadmin#17482 Pull-request: #386 Signed-off-by: William Desportes <williamdes@wdes.fr>
I just merged phpmyadmin/sql-parser#386 and pushed 9a84527 this morning. So the hash should be updated and changes be made here if necessary before sql-parser is released |
Perfect, I will make sure to create a PR to address the needed changes for this feature to be done |
@iifawzi - thank you very much for this! I saw your test cases, can you please also add another test?
|
This can surely be added, but this case is implicitly covered by the added tests already because we're checking whether it's an ANALYZE TABLE Statement or not, if it's not so this's definitely an Explain statement. |
Aahhh... ok, great then! Thanks very much 😊 |
Signed-off-by: William Desportes <williamdes@wdes.fr>
The (phpMyAdmin 5.2+snapshot) also available as a non official docker image is updated with the fixes made to sql-parser 🚀 |
Hey
When the query begins with
ANALYZE
(MariaDB) orEXPLAIN ANALYZE
(MySQL),could you please default to "Full texts", so we don't have to run the query again?
ANALYZE
is used to understand why a query is slow, so having to run it twice is a "waste of time", if you know what I mean :)Example query:
ANALYZE FORMAT=JSON SELECT * FROM test_table
Thank you!
The text was updated successfully, but these errors were encountered: