mariadb/handler
vasil 9bbd5454db branches/zip:
The cardinality of every index (the number of different key values) is
calculated when the table is opened, at SHOW TABLE STATUS,
ANALYZE TABLE and on other circumstances (like when the table has
changed too much). Note that if the mysql client is running with the
auto-rehash setting turned on (default) this causes all tables to be
opened when it starts.

Previously InnoDB sampled 8 random pages from the index to get an
estimate of the cardinality. Now the number of sampled pages can be
changed via the global parameter innodb_stats_sample_pages which can
be tuned at runtime. The default value for this parameter is 8.

If the value of this parameter is changed, there may be serious problems:

- small values (say, 1) can cause an error in table stats;
- values much larger than 8 (say, 100), can cause a big slowdown in
  table opening time, SHOW TABLE status, etc.
- query plans may be different from the old ones.

Approved by:	Heikki
2008-08-07 13:47:44 +00:00
..
ha_innodb.cc branches/zip: 2008-08-07 13:47:44 +00:00
ha_innodb.h branches/zip: Merge 2295:2367 from branches/5.1. 2008-03-17 14:09:44 +00:00
handler0alter.cc branches/zip: 2008-06-19 14:19:04 +00:00
i_s.cc branches/zip: 2008-05-06 11:10:09 +00:00
i_s.h branches/zip: Rename the compression-related INFORMATION_SCHEMA tables 2008-03-28 10:31:24 +00:00
mysql_addons.cc branches/zip: Add the necessary #include "univ.i" that was removed in the 2008-02-08 13:50:28 +00:00