mariadb/storage/innobase/ut
Thirunarayanan Balathandayuthapani a7a933982d MDEV-19574 innodb_stats_method is not honored when innodb_stats_persistent=ON
Problem:
=======
 InnoDB persistent statistics doesn't take innodb_stats_method
variable while calculating n_diff_pfx for the n-prefix index
columns.

Solution:
=========
While calculating the persistent statistics, InnoDB consider all
NULLS as different value when innodb_stats_method is
set to NULLS_UNEQUAL or NULLS_IGNORED. InnoDB statistics depends
on the value of "innodb_stats_method" variable when the
statistics were last recalculated.

dict_stats_analyze_index_level(),
dict_stats_scan_page(),
dict_stats_analyze_index_below_cur(),
dict_stats_analyze_index_for_n_prefix(): All function accepts
the parameter to indicate the innodb_stats_method. It also
calculates the number of non-null key value for each level or leaf page

dict_stats_index_set_n_diff(): calculates the number of non-null
values similar to number of different key values.

Append the non-default innodb_stats_method variable name
for n_diff_pfx statistics description in mysql.innodb_index_stats.

IndexScanStatistics: Structure to store the various statistical
metric gathered during index scan fetch operation. This structure
is being used in dict_stats_analyze_index_level() to fetch the
statistics
2025-07-18 20:24:15 +05:30
..
ut0dbg.cc Cleanup: Say "mariadbd" instead of "mysqld" in InnoDB messages 2022-11-22 15:32:47 +02:00
ut0list.cc Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
ut0mem.cc MDEV-21452: Replace ib_mutex_t with mysql_mutex_t 2020-12-15 17:56:18 +02:00
ut0new.cc MDEV-19574 innodb_stats_method is not honored when innodb_stats_persistent=ON 2025-07-18 20:24:15 +05:30
ut0rbt.cc MDEV-21452: Replace ib_mutex_t with mysql_mutex_t 2020-12-15 17:56:18 +02:00
ut0rnd.cc MDEV-36759: Huge performance drop 2025-05-13 12:27:50 +03:00
ut0ut.cc Merge 10.6 into 10.11 2024-12-19 15:38:53 +02:00
ut0vec.cc Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
ut0wqueue.cc Merge 10.5 into 10.6 2021-10-21 16:06:34 +03:00