mariadb/mysql-test/suite
Sergei Petrunia 43c5d1303f MDEV-35958 Cost estimates for materialized derived tables are poor
Backport of commit 74f70c3944 to 10.11.
The new logic is disabled by default, to enable, use
optimizer_adjust_secondary_key_costs=fix_derived_table_read_cost.

== Original commit comment ==
Fixed costs in JOIN_TAB::estimate_scan_time() and HEAP

Estimate_scan_time() calculates the cost of scanning a derivied table.
The old code did not take into account that the temporary table heap table
may be converted to Aria.

  Things fixed:
  - Added checking if the temporary tables data will fit in the heap.
    If not, then calculate the cost based on the designated internal
    temporary table engine (Aria).
  - Removed MY_MAX(records, 1000) and instead trust the optimizer's
    estimate of records. This reduces the cost of temporary tables a bit
    for small tables, which caused a few changes in mtr results.
  - Fixed cost calculation for HEAP.
  - HEAP costs->row_next_find_cost was not set. This does not affect old
    costs calculation as this cost slot was not used anywhere.
    Now HEAP cost->row_next_find_cost is set, which allowed me to remove
    some duplicated computation in ha_heap::scan_time()
2025-02-10 21:14:01 +02:00
..
archive Merge branch '10.5' into 10.6 2024-12-17 11:06:09 +11:00
atomic atomic.alter_table test is too slow for MSAN 2024-04-30 21:59:38 +02:00
binlog Merge branch '10.6' into 10.11 2025-01-30 11:55:13 +01:00
binlog_encryption Merge 10.6 into 10.11 2025-01-08 12:51:26 +02:00
client
compat Merge branch '10.6' into 10.11 2025-01-30 11:55:13 +01:00
csv Backporting bugs fixes fixed by MDEV-31340 from 11.5 2024-05-21 14:58:01 +04:00
encryption Merge branch '10.6' into 10.11 2025-01-30 11:55:13 +01:00
engines Merge 10.6 into 10.11 2025-01-08 12:51:26 +02:00
federated Merge branch '10.6' into 10.11 2025-01-30 11:55:13 +01:00
funcs_1 MDEV-35810 fix test results 2025-01-14 14:01:28 +01:00
funcs_2
galera Merge 10.6 into 10.11 2025-02-10 14:45:18 +02:00
galera_3nodes Merge branch '10.6' into 10.11 2025-01-30 11:55:13 +01:00
galera_3nodes_sr Merge branch '10.6' into 10.11 2024-07-22 15:14:50 +02:00
galera_sr Merge branch '10.6' into 10.11 2025-01-30 11:55:13 +01:00
gcol Merge branch '10.6' into 10.11 2025-01-10 13:14:42 +01:00
handler Merge branch '10.5' into 10.6 2024-12-17 11:06:09 +11:00
heap Merge branch '10.6' into 10.11 2025-01-30 11:55:13 +01:00
innodb Merge 10.6 into 10.11 2025-02-10 14:45:18 +02:00
innodb_fts Merge 10.6 into 10.11 2024-12-19 15:38:53 +02:00
innodb_gis Merge branch '10.6' into 10.11 2025-01-30 11:55:13 +01:00
innodb_i_s
innodb_zip Merge branch '10.6' into 10.11 2025-01-30 11:55:13 +01:00
jp
json Merge branch '10.6' into 10.11 2024-10-29 15:24:38 +01:00
large_tests fix failing large_tests.maria_recover_encrypted 2024-04-22 18:38:39 +02:00
maria Merge 10.6 into 10.11 2025-01-08 12:51:26 +02:00
mariabackup Merge 10.5 into 10.6 2025-01-20 09:57:37 +02:00
mtr/t Remove dates from all rdiff files 2025-01-05 16:40:11 +02:00
mtr2
multi_source Merge 10.6 into 10.11 2024-12-19 15:38:53 +02:00
optimizer_unfixed_bugs
parts Merge branch '10.6' into 10.11 2025-01-30 11:55:13 +01:00
perfschema Merge 10.6 into 10.11 2025-02-10 14:45:18 +02:00
perfschema_stress
period Merge 10.6 into 10.11 2025-01-08 12:51:26 +02:00
plugins Merge 10.6 into 10.11 2024-12-19 15:38:53 +02:00
roles Merge branch '10.6' into 10.11 2025-01-30 11:55:13 +01:00
rpl Merge branch '10.6' into '10.11' 2025-02-02 23:17:20 +01:00
s3 Merge branch '10.6' into 10.11 2025-01-30 11:55:13 +01:00
sql_sequence Merge branch '10.6' into 10.11 2025-01-30 11:55:13 +01:00
storage_engine
stress MDEV-34453 Trying to read 16384 bytes at 70368744161280 outside the bounds of the file: ./ibdata1 2024-09-20 20:26:43 +05:30
sys_vars MDEV-35958 Cost estimates for materialized derived tables are poor 2025-02-10 21:14:01 +02:00
sysschema Merge 10.6 into 10.11 2024-03-28 09:16:57 +02:00
unit
vcol Merge branch '10.6' into 10.11 2025-01-30 11:55:13 +01:00
versioning Merge branch '10.6' into 10.11 2025-01-30 11:55:13 +01:00
wsrep Merge branch '10.6' into '10.11' 2025-02-02 23:17:20 +01:00