Comments on: ANALYZE TABLE Is No Longer a Blocking Operation https://www.percona.com/blog/analyze-table-is-no-longer-a-blocking-operation/ Tue, 06 Aug 2019 20:16:19 +0000 hourly 1 https://wordpress.org/?v=6.5.2 By: Jean-François Gagné https://www.percona.com/blog/analyze-table-is-no-longer-a-blocking-operation/#comment-10969061 Fri, 06 Apr 2018 06:12:02 +0000 https://www.percona.com/blog/?p=48090#comment-10969061 Thanks for the pointer Sveta.

]]>
By: Sveta Smirnova https://www.percona.com/blog/analyze-table-is-no-longer-a-blocking-operation/#comment-10969060 Thu, 05 Apr 2018 17:33:39 +0000 https://www.percona.com/blog/?p=48090#comment-10969060 There is option STATS_SAMPLE_PAGES for CREATE TABLE statement, it works same way as those variables.

]]>
By: Jean-François Gagné https://www.percona.com/blog/analyze-table-is-no-longer-a-blocking-operation/#comment-10969058 Thu, 05 Apr 2018 06:10:06 +0000 https://www.percona.com/blog/?p=48090#comment-10969058 Hi Sveta,

I have a somehow related question about the innodb_stats_transient_sample_pages and innodb_stats_persistent_sample_pages variables. You write that if the data distribution is even, the defaults are good, but if not, those variables should be increased. However, those variables have a global scope, so increasing them will have an effect on all the tables, even for the tables that have even distribution, right ?

A solution to that could be to change the variable just before running an ANALYSE TABLE and fix it back to the original value after, but this is prone to error. Maybe having a session scope for this variable would be useful…

But even a session scope is only a small improvement. The right solution would be to set those at the “table” scope. This way, we would not need to “remember” which value is good and simply running ANALYSE TABLE would do the right thing.

Could you share your thoughts on this subject ? Does Percona have plans to improve InnoDB there ?

Many thanks and best regards,

Jean-François Gagné

]]>
By: Luke https://www.percona.com/blog/analyze-table-is-no-longer-a-blocking-operation/#comment-10969030 Wed, 28 Mar 2018 03:31:38 +0000 https://www.percona.com/blog/?p=48090#comment-10969030 good job

]]>
By: Vojtech Kurka https://www.percona.com/blog/analyze-table-is-no-longer-a-blocking-operation/#comment-10969027 Tue, 27 Mar 2018 20:19:06 +0000 https://www.percona.com/blog/?p=48090#comment-10969027 This is good news, thank you

]]>