From bed7b41faf0f01d071ecda7261fea0cb5b491792 Mon Sep 17 00:00:00 2001 From: Todd Gruben Date: Fri, 23 Jun 2017 08:13:57 -0500 Subject: [PATCH] fixed memory hit on startup --- fragment.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fragment.go b/fragment.go index 4758f18e8..2b923507b 100644 --- a/fragment.go +++ b/fragment.go @@ -272,8 +272,8 @@ 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.storage.CountRange(id*SliceWidth, (id+1)*SliceWidth) + //n := f.row(id, true, true).Count() f.cache.BulkAdd(id, n) } f.cache.Invalidate()