mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge 10.3 into 10.4
This commit is contained in:
@ -3247,6 +3247,12 @@ bool calculate_cond_selectivity_for_table(THD *thd, TABLE *table, Item **cond)
|
||||
|
||||
}
|
||||
|
||||
if (quick && (quick->get_type() == QUICK_SELECT_I::QS_TYPE_ROR_UNION ||
|
||||
quick->get_type() == QUICK_SELECT_I::QS_TYPE_INDEX_MERGE))
|
||||
{
|
||||
table->cond_selectivity*= (quick->records/table_records);
|
||||
}
|
||||
|
||||
bitmap_union(used_fields, &handled_columns);
|
||||
|
||||
/* Check if we can improve selectivity estimates by using sampling */
|
||||
|
Reference in New Issue
Block a user