From eb4267d4ab29cd41e32c5cb8e040bc90420cbabf Mon Sep 17 00:00:00 2001 From: Todd Gruben Date: Fri, 11 Dec 2015 13:19:19 -0600 Subject: [PATCH] updated the Count cache on set operations --- executor.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/executor.go b/executor.go index f9b862422..f80e50549 100644 --- a/executor.go +++ b/executor.go @@ -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 }