auto update statistics Archives - Anuj Varma, Hands-On Technology Architect, Clean Air Activist https://www.anujvarma.com/tag/auto-update-statistics/ Production Grade Technical Solutions | Data Encryption and Public Cloud Expert Thu, 01 Nov 2018 20:01:45 +0000 en-US hourly 1 https://wordpress.org/?v=7.0.2 https://www.anujvarma.com/wp-content/uploads/anujtech.png auto update statistics Archives - Anuj Varma, Hands-On Technology Architect, Clean Air Activist https://www.anujvarma.com/tag/auto-update-statistics/ 32 32 MariaDB auto update statistics https://www.anujvarma.com/mariadb-auto-update-statistics/ https://www.anujvarma.com/mariadb-auto-update-statistics/#respond Tue, 19 Jun 2018 21:41:00 +0000 http://www.anujvarma.com/?p=5357 To check if auto update is enabled on statistics, try this command show variables like '%metadata%'; If you see an output such as: innodb_stats_auto_recalc = 1, you're all set.. If […]

The post MariaDB auto update statistics appeared first on Anuj Varma, Hands-On Technology Architect, Clean Air Activist.

]]>
To check if auto update is enabled on statistics, try this command

show variables like '%metadata%';
If you see an output such as:
innodb_stats_auto_recalc = 1, you're all set..

If you see an output such as:

 innodb_stats_on_metadata | ON    |

it means that statistics get updated whenever metadata on the table is requested, which is typically enough. But , you may still need to set that first variable –

innodb_stats_auto_recalc = 1

Here is some more info on this topic – https://mariadb.com/kb/en/library/xtradbinnodb-server-system-variables/#innodb_stats_auto_recalc

For cloud migration projects or cloud consulting on AWS, GCP or Azure, contact Cloud Migration Architect

The post MariaDB auto update statistics appeared first on Anuj Varma, Hands-On Technology Architect, Clean Air Activist.

]]>
https://www.anujvarma.com/mariadb-auto-update-statistics/feed/ 0