From e27c1a6d337a42965a018dcdc3acd0bdb5b6590e Mon Sep 17 00:00:00 2001 From: Todd Gruben Date: Mon, 27 Feb 2017 12:42:36 -0600 Subject: [PATCH] rank cache update after count heap sort order backwards WIP TopN accuracy adjusted first phase topn to collect all slices id's incorrect handling of large topns cache performance enhancement fix for failed test TestMain_FrameRestore remove unused code and fix some variable names --- executor.go | 1 - fragment.go | 5 ----- 2 files changed, 6 deletions(-) diff --git a/executor.go b/executor.go index e842b3acd..b817e3718 100644 --- a/executor.go +++ b/executor.go @@ -779,7 +779,6 @@ func (e *Executor) mapper(ctx context.Context, ch chan mapResponse, nodes []*Nod resp.result, resp.err = e.mapperLocal(ctx, nodeSlices, mapFn, reduceFn) } else if !opt.Remote { results, err := e.exec(ctx, n, db, &pql.Query{Calls: pql.Calls{c}}, nodeSlices, opt) - if len(results) > 0 { resp.result = results[0] } diff --git a/fragment.go b/fragment.go index ac4d63926..e203dd711 100644 --- a/fragment.go +++ b/fragment.go @@ -563,12 +563,7 @@ func (f *Fragment) Top(opt TopOptions) ([]Pair, error) { // Retrieve the lowest count we have. // If it's too low then don't try finding anymore pairs. - //threshold := results[len(results)-1].Count - threshold := results.Pairs[0].Count - //if threshold < MinThreshold { - //break - //} // If the bitmap doesn't have enough bits set before the intersection // then we can assume that any remaing bitmaps also have a count too low.