1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-01 06:46:55 +03:00

when eq Filtercount <6 ,the speed of for loop is faster than hashmap

add threshold for eqFilter
This commit is contained in:
NTH19
2022-08-19 22:35:28 +08:00
parent 50d95bf60a
commit df7c967d54
3 changed files with 5 additions and 4 deletions

View File

@ -49,14 +49,16 @@ DictStepJL::DictStepJL(const pDictionaryStep& dict)
hasEqFilter = dict.hasEqualityFilter;
if (hasEqFilter)
if (hasEqFilter && dict.eqFilter.size()> USEEQFILTERTHRESHOLD)
{
eqOp = dict.tmpCOP;
eqFilter = dict.eqFilter;
}
else
{
hasEqFilter=false;
filterString = dict.fFilterString;
}
filterCount = dict.fFilterCount;
charsetNumber = dict.fColType.charsetNumber;
}