Documentation Home
MySQL 9.2 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 40.8Mb
PDF (A4) - 40.9Mb
Man Pages (TGZ) - 259.7Kb
Man Pages (Zip) - 366.9Kb
Info (Gzip) - 4.1Mb
Info (Zip) - 4.1Mb


MySQL 9.2 Reference Manual  / ...  / Optimization  / Optimizing for InnoDB Tables  /  Optimizing InnoDB for Systems with Many Tables

10.5.10 Optimizing InnoDB for Systems with Many Tables

  • If you have configurednon-persistent optimizer statistics (a non-default configuration),InnoDB computes indexcardinality values for a table the first time that table is accessed after startup, instead of storing such values in the table. This step can take significant time on systems that partition the data into many tables. Since this overhead only applies to the initial table open operation, towarm up a table for later use, access it immediately after startup by issuing a statement such asSELECT 1 FROMtbl_name LIMIT 1.

    Optimizer statistics are persisted to disk by default, enabled by theinnodb_stats_persistent configuration option. For information about persistent optimizer statistics, seeSection 17.8.10.1, “Configuring Persistent Optimizer Statistics Parameters”.