mariadb/storage/heap
Monty a61f0c392c 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-04 21:36:55 +02:00
..
mysql-test/mtr2 overlay support for mysql-test-run and mysqltest 2012-02-23 07:50:11 +01:00
_check.c Merge 5.5 into 10.1 2019-11-06 08:17:03 +02:00
_rectest.c Update FSF Address 2019-05-11 21:29:06 +03:00
ChangeLog Fix various spelling errors still found in code 2021-03-22 18:10:39 +11:00
CMakeLists.txt Add -berok for head test on AIX 2020-12-16 08:07:04 +11:00
ha_heap.cc Fixed costs in JOIN_TAB::estimate_scan_time() and HEAP 2025-02-04 21:36:55 +02:00
ha_heap.h MDEV-32575 MSAN / Valgrind errors in test_if_cheaper_ordering upon reaching in_predicate_conversion_threshold 2025-01-27 15:59:47 +07:00
heapdef.h MDEV-35469 Heap tables are calling mallocs to often 2025-01-05 16:40:11 +02:00
hp_block.c MDEV-35469 Heap tables are calling mallocs to often 2025-01-05 16:40:11 +02:00
hp_clear.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
hp_close.c MDEV-18783 - Server crash in hp_rb_make_key 2019-10-30 12:52:19 +04:00
hp_create.c MDEV-35469 Heap tables are calling mallocs to often 2025-01-05 16:40:11 +02:00
hp_delete.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
hp_extra.c Update FSF Address 2019-05-11 21:29:06 +03:00
hp_hash.c Added page_range to records_in_range() to improve range statistics 2020-03-27 03:54:45 +02:00
hp_info.c MDEV-24610 MEMORY SE: check overflow in info calls with HA_STATUS_AUTO 2024-05-22 09:18:09 +10:00
hp_open.c perfschema memory related instrumentation changes 2020-03-10 19:24:22 +01:00
hp_panic.c Update FSF Address 2019-05-11 21:29:06 +03:00
hp_rename.c perfschema memory related instrumentation changes 2020-03-10 19:24:22 +01:00
hp_rfirst.c Update FSF Address 2019-05-11 21:29:06 +03:00
hp_rkey.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
hp_rlast.c Update FSF Address 2019-05-11 21:29:06 +03:00
hp_rnext.c MDEV-22695 Server crashes in heap_rnext upon DELETE from a HEAP table 2025-01-14 18:56:13 +03:00
hp_rprev.c MDEV-22695 Server crashes in heap_rnext upon DELETE from a HEAP table 2025-01-14 18:56:13 +03:00
hp_rrnd.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
hp_rsame.c Update FSF Address 2019-05-11 21:29:06 +03:00
hp_scan.c MDEV-15458 Segfault in heap_scan() upon UPDATE after ADD SYSTEM VERSIONING 2019-08-20 15:37:08 +02:00
hp_static.c perfschema memory related instrumentation changes 2020-03-10 19:24:22 +01:00
hp_test1.c Fix clang -Wunused-but-set-variable in unit tests 2022-07-26 08:18:36 +03:00
hp_test2.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
hp_update.c MDEV-35343 ha_heap: recover the cursor after failed ha_update_row 2025-01-14 18:56:13 +03:00
hp_write.c MDEV-35469 Heap tables are calling mallocs to often 2025-01-05 16:40:11 +02:00