You've already forked mariadb-columnstore-engine
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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user