mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
updated the Count cache on set operations
This commit is contained in:
parent
1fb85fd0e3
commit
eb4267d4ab
1 changed files with 3 additions and 0 deletions
|
|
@ -150,6 +150,7 @@ func (e *Executor) executeDifferenceSlice(db string, c *pql.Difference, slice ui
|
|||
other = other.Difference(bm)
|
||||
}
|
||||
}
|
||||
other.SetCount(other.BitCount())
|
||||
return other, nil
|
||||
}
|
||||
|
||||
|
|
@ -178,6 +179,7 @@ func (e *Executor) executeIntersectSlice(db string, c *pql.Intersect, slice uint
|
|||
other = other.Intersect(bm)
|
||||
}
|
||||
}
|
||||
other.SetCount(other.BitCount())
|
||||
return other, nil
|
||||
}
|
||||
|
||||
|
|
@ -201,6 +203,7 @@ func (e *Executor) executeUnionSlice(db string, c *pql.Union, slice uint64) (*Bi
|
|||
other = other.Union(bm)
|
||||
}
|
||||
}
|
||||
other.SetCount(other.BitCount())
|
||||
return other, nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue