mariadb/storage
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
..
archive Merge 10.6 into 10.11 2024-06-27 10:26:09 +03:00
blackhole MDEV-34348: my_hash_get_key fixes 2024-11-23 08:14:22 -07:00
columnstore update ColumnStore 2025-07-08 13:16:09 +02:00
connect Bug#1069094: mariadb: FTBFS on hurd-i386 2025-06-18 09:11:28 +10:00
csv MDEV-23699 Assertion failed in ha_tina::delete_row 2025-07-01 06:52:10 -04:00
example MDEV-36729: ha_example::show_func_example is incorrectly defined 2025-05-29 10:10:52 +10:00
federated Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
federatedx Merge branch '10.6' into '10.11' 2025-04-16 03:34:40 +02:00
heap Merge 10.5 into 10.6 2025-01-20 09:57:37 +02:00
innobase MDEV-19574 innodb_stats_method is not honored when innodb_stats_persistent=ON 2025-07-18 20:24:15 +05:30
maria MDEV-36753 Assertion `str[strlen(str)-1] != '\n'' failed in my_message_sql upon REPAIR .. USE_FRM with encryption enabled 2025-07-17 09:18:17 +02:00
mroonga Merge branch '10.6' into 10.11 2025-06-04 14:09:23 +02:00
myisam MDEV-37019 MSAN_STAT_WORKAROUND macro remove 2025-06-18 16:46:21 +10:00
myisammrg Merge 10.6 into 10.11 2025-01-08 12:51:26 +02:00
oqgraph Merge 10.6 into 10.11 2024-11-29 13:43:17 +02:00
perfschema Merge 10.6 into 10.11 2025-05-21 07:36:35 +03:00
rocksdb MDEV-29001 DROP DEFAULT makes SHOW CREATE non-idempotent 2025-07-17 09:18:18 +02:00
sequence MDEV-33746 Supply missing override markings 2024-06-20 11:32:13 -04:00
sphinx Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
spider Merge 10.6 into 10.11 2025-05-21 07:36:35 +03:00
test_sql_discovery Merge 10.5 into 10.6 2024-06-24 13:09:47 +03:00