mariadb/storage/maria
Monty 1f040ae048 MDEV-34043 Drastically slower query performance between CentOS (2sec) and Rocky (48sec)
One cause of the slowdown is because the ftruncate call can be much
slower on some systems.  ftruncate() is called by Aria for internal
temporary tables, tables created by the optimizer, when the upper level
asks Aria to delete the previous result set. This is needed when some
content from previous tables changes.

I have now changed Aria so that for internal temporary tables we don't
call ftruncate() anymore for maria_delete_all_rows().

I also had to update the Aria repair code to use the logical datafile
size and not the on-disk datafile size, which may contain data from a
previous result set.  The repair code is called to create indexes for
the internal temporary table after it is filled.
I also replaced a call to mysql_file_size() with a pwrite() in
_ma_bitmap_create_first().

Reviewer: Sergei Petrunia <sergey@mariadb.com>
Tester: Dave Gosselin <dave.gosselin@mariadb.com>
2024-08-21 22:47:29 +03:00
..
libmarias3@3846890513 MDEV-25716 Building failure in S3 engine on MacOS 2021-07-28 22:48:06 +02:00
unittest MDEV-33876 CMake, zlib - use names compatible with official FindZLIB.cmake 2024-05-03 21:48:47 +02:00
aria_chk.c Merge commit '10.4' into 10.5 2023-07-20 11:54:52 +02:00
aria_dump_log.c Make maria_data_root const char* 2021-02-08 12:16:29 +02:00
aria_ftdump.c Merge 10.4 into 10.5 2022-10-06 08:29:56 +03:00
aria_pack.c Make maria_data_root const char* 2021-02-08 12:16:29 +02:00
aria_read_log.c Fix various spelling errors still found in code 2021-03-22 18:10:39 +11:00
aria_s3_copy.cc Added options s3_port and s3_use_http to aria_s3_copy 2021-09-01 13:34:46 +03:00
CMakeLists.txt MDEV-33876 CMake, zlib - use names compatible with official FindZLIB.cmake 2024-05-03 21:48:47 +02:00
file_formats.txt
ft_maria.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
ha_maria.cc MDEV-34522 Index for (specific) Aria table is created as corrupted 2024-07-07 12:43:44 +03:00
ha_maria.h MDEV-33746 Supply missing override markings 2024-06-20 11:32:13 -04:00
ha_s3.cc Perform simple fixes for cppcheck findings 2024-07-08 10:51:48 +01:00
ha_s3.h Added support for CHECK TABLE for S3 tables 2021-09-01 13:47:26 +03:00
lockman.c Merge 10.4 into 10.5 2020-04-25 21:57:52 +03:00
lockman.h Update FSF address 2019-05-10 20:52:00 +03:00
ma_backup.c Fix various spelling errors still found in code 2021-03-22 18:10:39 +11:00
ma_bitmap.c MDEV-34043 Drastically slower query performance between CentOS (2sec) and Rocky (48sec) 2024-08-21 22:47:29 +03:00
ma_blockrec.c Merge 10.4 into 10.5 2024-03-11 10:08:20 +02:00
ma_blockrec.h Changes needed for ColumnStore and insert cache 2020-06-14 19:39:42 +03:00
ma_cache.c Fixed bug in Aria read cache when doing check/repair 2022-06-06 16:08:25 +03:00
ma_changed.c Update FSF address 2019-05-10 20:52:00 +03:00
ma_check.c MDEV-34043 Drastically slower query performance between CentOS (2sec) and Rocky (48sec) 2024-08-21 22:47:29 +03:00
ma_check.h Fix clang -Wtypedef-redefinition 2022-03-11 13:29:41 +02:00
ma_check_standalone.h MDEV-17913 Encrypted transactional Aria tables remain corrupt after crash recovery, automatic repairment does not work 2021-04-06 14:57:22 +03:00
ma_checkpoint.c Improve error messages from Aria 2021-09-15 19:27:34 +03:00
ma_checkpoint.h Merge branch '10.3' into 10.4 2019-05-19 20:55:37 +02:00
ma_checksum.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
ma_close.c MDEV-25507 CHECK on encrypted Aria table complains about "Wrong LSN" 2021-04-30 15:45:07 +03:00
ma_commit.c Merge branch '5.5' into 10.1 2019-05-11 19:15:57 +03:00
ma_commit.h Update FSF address 2019-05-10 20:52:00 +03:00
ma_control_file.c MDEV-24788: mariadbd --help Can't lock aria control file 2021-12-16 10:53:32 +11:00
ma_control_file.h Fix "unresolved external symbol" link errors with MSVC 2020-06-19 19:43:07 +02:00
ma_create.c Merge 10.4 into 10.5 2024-03-11 10:08:20 +02:00
ma_crypt.c Merge commit '10.4' into 10.5 2023-07-20 11:54:52 +02:00
ma_crypt.h MDEV-26258 Various crashes/asserts/corruptions when Aria encryption is enabled/used, but the encryption plugin is not loaded 2023-05-02 23:37:10 +03:00
ma_dbug.c Update FSF address 2019-05-10 20:52:00 +03:00
ma_delete.c alloc_on_stack: simplify the API 2019-08-23 22:01:39 +02:00
ma_delete_all.c MDEV-34043 Drastically slower query performance between CentOS (2sec) and Rocky (48sec) 2024-08-21 22:47:29 +03:00
ma_delete_table.c Merge commit '10.4' into 10.5 2023-07-20 11:54:52 +02:00
ma_dynrec.c Merge 10.4 into 10.5 2024-03-11 10:08:20 +02:00
ma_extra.c MDEV-25102 UNIQUE USING HASH error after ALTER ... DISABLE KEYS 2024-05-06 17:16:10 +02:00
ma_ft_boolean_search.c Merge branch '10.4' into 10.5 2023-11-08 12:59:00 +01:00
ma_ft_eval.c Update FSF address 2019-05-10 20:52:00 +03:00
ma_ft_eval.h Update FSF address 2019-05-10 20:52:00 +03:00
ma_ft_nlq_search.c Merge branch '10.4' into 10.5 2023-11-08 12:59:00 +01:00
ma_ft_parser.c Merge branch '10.4' into 10.5 2023-11-08 12:59:00 +01:00
ma_ft_stem.c Update FSF address 2019-05-10 20:52:00 +03:00
ma_ft_test1.c Update FSF address 2019-05-10 20:52:00 +03:00
ma_ft_test1.h Switch Perl DBI scripts from DBD::mysql to DBD::MariaDB driver 2019-07-19 13:39:20 +03:00
ma_ft_update.c MDEV-30048 Prefix keys for CHAR work differently for MyISAM vs InnoDB 2023-10-24 03:35:48 +04:00
ma_ftdefs.h Update FSF address 2019-05-10 20:52:00 +03:00
ma_fulltext.h Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
ma_info.c MDEV-20279 Increase Aria index length limit 2019-08-23 11:26:04 +02:00
ma_init.c mysqld --help will now load mysqld.options table 2020-03-24 21:00:04 +02:00
ma_key.c Merge branch '10.4' into 10.5 2020-05-09 20:43:36 +02:00
ma_key_recover.c MDEV-18187 Aria engine: Redo phase failed with "error 192 when executing record redo_index_new_page" upon startup on a restored datadir 2021-12-15 16:28:01 +02:00
ma_key_recover.h Update FSF address 2019-05-10 20:52:00 +03:00
ma_keycache.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
ma_locking.c Merge 10.4 into 10.5 2023-01-03 17:08:42 +02:00
ma_loghandler.c MDEV-31349 test maria.maria-purge failed on 'aria_log.00000002 not found' 2023-10-08 18:16:20 +03:00
ma_loghandler.h Merge 10.3 into 10.4 2019-11-01 15:23:18 +02:00
ma_loghandler_lsn.h MDEV-17913 Encrypted transactional Aria tables remain corrupt after crash recovery, automatic repairment does not work 2021-04-06 14:57:22 +03:00
ma_norec.c Merge branch '5.5' into 10.1 2019-05-11 19:15:57 +03:00
ma_open.c Merge 10.4 into 10.5 2024-03-11 10:08:20 +02:00
ma_packrec.c Merge 10.4 into 10.5 2024-03-11 10:08:20 +02:00
ma_page.c Fix clang 10 warnings 2020-04-27 09:40:34 +03:00
ma_pagecache.c Merge 10.4 into 10.5 2022-09-26 13:34:38 +03:00
ma_pagecache.h S3 is pluggable now 2020-06-19 19:43:07 +02:00
ma_pagecaches.c Update FSF address 2019-05-10 20:52:00 +03:00
ma_pagecrc.c MDEV-22641: Provide SIMD optimized wrapper for zlib crc32() (#1558) 2020-06-01 11:34:06 +03:00
ma_panic.c Update FSF address 2019-05-10 20:52:00 +03:00
ma_preload.c perfschema memory related instrumentation changes 2020-03-10 19:24:22 +01:00
ma_range.c MDEV-22935 Erroneous Aria Index / Optimizer behaviour 2024-06-05 10:29:49 +03:00
ma_recovery.c Merge 10.4 into 10.5 2021-03-05 12:54:43 +02:00
ma_recovery.h Improve logging of Aria redo's and undo's 2020-05-27 15:47:10 +03:00
ma_recovery_util.c Fixed printing of wring filname "maria_open" in maria.maria-recovery2.test 2021-03-01 22:09:05 +02:00
ma_recovery_util.h Fixed access to undefined memory found by valgrind and MSAN 2020-05-23 12:29:10 +03:00
ma_rename.c Merge 10.4 into 10.5 2019-05-23 10:32:21 +03:00
ma_rfirst.c Update FSF address 2019-05-10 20:52:00 +03:00
ma_rkey.c MDEV-21794: Optimizer flag rowid_filter leads to long query 2020-05-07 12:27:17 +02:00
ma_rlast.c Update FSF address 2019-05-10 20:52:00 +03:00
ma_rnext.c MDEV-21794: Optimizer flag rowid_filter leads to long query 2020-05-07 12:27:17 +02:00
ma_rnext_same.c MDEV-21794: Optimizer flag rowid_filter leads to long query 2020-05-07 12:27:17 +02:00
ma_rprev.c MDEV-21794: Optimizer flag rowid_filter leads to long query 2020-05-07 12:27:17 +02:00
ma_rrnd.c Update FSF address 2019-05-10 20:52:00 +03:00
ma_rsame.c Update FSF address 2019-05-10 20:52:00 +03:00
ma_rsamepos.c Update FSF address 2019-05-10 20:52:00 +03:00
ma_rt_index.c perfschema memory related instrumentation changes 2020-03-10 19:24:22 +01:00
ma_rt_index.h Update FSF address 2019-05-10 20:52:00 +03:00
ma_rt_key.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
ma_rt_key.h Update FSF address 2019-05-10 20:52:00 +03:00
ma_rt_mbr.c Merge branch '5.5' into 10.1 2019-05-11 19:15:57 +03:00
ma_rt_mbr.h Update FSF address 2019-05-10 20:52:00 +03:00
ma_rt_split.c alloc_on_stack: simplify the API 2019-08-23 22:01:39 +02:00
ma_rt_test.c Merge 10.4 into 10.5 2021-08-25 07:53:23 +03:00
ma_scan.c Update FSF address 2019-05-10 20:52:00 +03:00
ma_search.c alloc_on_stack: simplify the API 2019-08-23 22:01:39 +02:00
ma_servicethread.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
ma_servicethread.h Update FSF address 2019-05-10 20:52:00 +03:00
ma_sort.c Fix of4cb0d43ac63761174a39cea892c176b9cfa6edfc after merge in 10.5 2023-07-30 08:41:54 +02:00
ma_sp_defs.h Update FSF address 2019-05-10 20:52:00 +03:00
ma_sp_key.c MDEV-21082: isnan/isinf compilation errors, isfinite warnings on MacOS 2019-11-19 16:28:15 +03:00
ma_sp_test.c cleanup: Aria headers 2020-06-19 19:43:07 +02:00
ma_state.c Updated code comments 2020-06-14 19:39:43 +03:00
ma_state.h cleanup: Aria headers 2020-06-19 19:43:07 +02:00
ma_static.c Make maria_data_root const char* 2021-02-08 12:16:29 +02:00
ma_statrec.c Update FSF address 2019-05-10 20:52:00 +03:00
ma_test1.c Make maria_data_root const char* 2021-02-08 12:16:29 +02:00
ma_test2.c Make maria_data_root const char* 2021-02-08 12:16:29 +02:00
ma_test3.c Merge 10.4 into 10.5 2022-07-27 17:17:24 +03:00
ma_test_all.res
ma_test_all.sh
ma_test_big.sh
ma_test_force_start.pl CRLF->LF 2015-06-02 22:07:47 +02:00
ma_test_recovery
ma_trnman.h Merge branch '10.3' into 10.4 2019-05-19 20:55:37 +02:00
ma_unique.c Merge branch '10.4' into 10.5 2023-11-08 12:59:00 +01:00
ma_update.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
ma_write.c Merge branch '10.4' into 10.5 2023-11-08 12:59:00 +01:00
maria_def.h Merge 10.4 into 10.5 2024-03-11 10:08:20 +02:00
s3.cnf MDEV-22980: Allow plugin-maturity=alpha so S3 plugin loads 2020-08-01 10:31:41 +10:00
s3_func.c Fix S3 engine Coverity hits 2023-02-14 16:27:21 +00:00
s3_func.h MDEV-28050: clang -Wtypedef-redefinition when PLUGIN_S3=NO 2022-03-14 10:42:50 +02:00
tablockman.c Update FSF address 2019-05-10 20:52:00 +03:00
tablockman.h Update FSF address 2019-05-10 20:52:00 +03:00
test_aria_s3_copy.sh MDEV-17841 S3 storage engine 2019-05-23 02:28:23 +03:00
test_ma_backup.c Merge 10.4 into 10.5 2021-08-26 08:46:57 +03:00
test_pack
trnman.c mysqld --help will now load mysqld.options table 2020-03-24 21:00:04 +02:00
trnman.h mysqld --help will now load mysqld.options table 2020-03-24 21:00:04 +02:00
trnman_public.h Update FSF address 2019-05-10 20:52:00 +03:00