Commit b0bccac1 authored by Alice Sherepa's avatar Alice Sherepa

stats_

parent 7f125257
......@@ -10,11 +10,9 @@ test.test_ps_sample_pages_used analyze status OK
SELECT stat_name, stat_value FROM mysql.innodb_index_stats
WHERE table_name='test_ps_sample_pages_used' AND stat_name='n_leaf_pages';
stat_name stat_value
n_leaf_pages 37
SELECT sample_size FROM mysql.innodb_index_stats
WHERE table_name='test_ps_sample_pages_used' AND stat_name='n_diff_pfx01';
sample_size
17
ALTER TABLE test_ps_sample_pages_used STATS_SAMPLE_PAGES=14;
ANALYZE TABLE test_ps_sample_pages_used;
Table Op Msg_type Msg_text
......@@ -22,6 +20,5 @@ test.test_ps_sample_pages_used analyze status OK
SELECT sample_size FROM mysql.innodb_index_stats
WHERE table_name='test_ps_sample_pages_used' AND stat_name='n_diff_pfx01';
sample_size
14
DROP TABLE test_ps_sample_pages_used;
SET GLOBAL innodb_stats_persistent_sample_pages=default;
......@@ -16,6 +16,6 @@ a b
3 ghi
"Unexpected count: 0"
DROP TABLE t1;
SET GLOBAL innodb_stats_persistent = default;
SET GLOBAL innodb_stats_persistent = off;
SET GLOBAL innodb_stats_auto_recalc = default;
SET GLOBAL innodb_purge_run_now = ON;
--innodb-stats-persistent=1
\ No newline at end of file
--innodb-stats-persistent=1
\ No newline at end of file
......@@ -35,6 +35,6 @@ if ($diff != 3) {
DROP TABLE t1;
SET GLOBAL innodb_stats_persistent = default;
SET GLOBAL innodb_stats_persistent = off;
SET GLOBAL innodb_stats_auto_recalc = default;
SET GLOBAL innodb_purge_run_now = ON;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment