diff options
author | Monty <monty@mariadb.org> | 2022-11-16 14:52:47 +0200 |
---|---|---|
committer | Sergei Petrunia <sergey@mariadb.com> | 2023-02-03 10:42:28 +0300 |
commit | 66dde8a54ecf91d97eb1ae4a6209e0e2dddcec97 (patch) | |
tree | ea6edd11d98d0990159825cf80b9353cc795e7d2 /include/my_compare.h | |
parent | 6418c24c9498a28b3320d26309964203327ae66e (diff) | |
download | mariadb-git-66dde8a54ecf91d97eb1ae4a6209e0e2dddcec97.tar.gz |
Added rowid_filter support to Aria
This includes:
- cleanup and optimization of filtering and pushdown engine code.
- Adjusted costs for rowid filters (based on extensive testing
and profiling).
This made a small two changes to the handler_rowid_filter_is_active()
API:
- One should not call it with a zero pointer!
- One does not need to call handler_rowid_filter_is_active() for every
row anymore. It is enough to check if filter is active by calling it
call it during index_init() or when handler::rowid_filter_changed()
is called
The changes was to avoid unnecessary function calls and checks if
pushdown conditions and rowid_filter is not used.
Updated costs for rowid_filter_lookup() to be closer to reality.
The old cost was based only on rowid_compare_cost. This is now
changed to take into account the overhead in checking the rowid.
Changed the Range_rowid_filter class to use DYNAMIC_ARRAY directly
instead of Dynamic_array<>. This was done to be able to use the new
append_dynamic() functions which gives a notable speed improvment
compared to the old code. Removing the abstraction also makes
the code easier to understand.
The cost of filtering is now slightly lower than before, which
is reflected in some test cases that is now using rowid filters.
Diffstat (limited to 'include/my_compare.h')
-rw-r--r-- | include/my_compare.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/my_compare.h b/include/my_compare.h index c2cb9ae46b9..62bb6ac0ed4 100644 --- a/include/my_compare.h +++ b/include/my_compare.h @@ -154,6 +154,5 @@ typedef enum check_result { typedef check_result_t (*index_cond_func_t)(void *param); typedef check_result_t (*rowid_filter_func_t)(void *param); -typedef int (*rowid_filter_is_active_func_t)(void *param); #endif /* _my_compare_h */ |