You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +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;
|
||||
}
|
||||
|
@ -544,6 +544,7 @@ class pColScanStep : public JobStep
|
||||
/** @brief class pDictionaryStep
|
||||
*
|
||||
*/
|
||||
#define USEEQFILTERTHRESHOLD 6
|
||||
class pDictionaryStep : public JobStep
|
||||
{
|
||||
public:
|
||||
|
Reference in New Issue
Block a user