mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
DS-MRR support improvements (MWL#123, MWL#124, MWL#125)
- Lots of TODO comments - add mrr_sort_keys flag to @@optimizer_switch - [from Igor] SQL layer part passes HA_MRR_MATERIALIZED_KEYS flag - Don't call rnd_pos() many times in a row if sorted rowid buffer has the same rowid value for multiple consequive (rowid, range_id) pairs.
This commit is contained in:
@@ -1322,6 +1322,12 @@ void get_sweep_read_cost(TABLE *table, ha_rows nrows, bool interrupted,
|
||||
*/
|
||||
#define HA_MRR_NO_NULL_ENDPOINTS 128
|
||||
|
||||
/*
|
||||
The MRR user has materialized range keys somewhere in the user's buffer.
|
||||
This can be used for optimization of the procedure that sorts these keys
|
||||
since in this case key values don't have to be copied into the MRR buffer.
|
||||
*/
|
||||
#define HA_MRR_MATERIALIZED_KEYS 256
|
||||
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user