replaced counting method on cache load

This commit is contained in:
Todd Gruben 2017-08-05 17:12:31 -05:00
parent af3714e5ab
commit 51f980f695

View file

@ -272,8 +272,7 @@ func (f *Fragment) openCache() error {
// Read in all rows by ID.
// This will cause them to be added to the cache.
for _, id := range pb.IDs {
n := f.storage.CountRange(id*SliceWidth, (id+1)*SliceWidth)
//n := f.row(id, true, true).Count()
n := f.row(id, false, false).Count()
f.cache.BulkAdd(id, n)
}
f.cache.Invalidate()