mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 09:05:55 +00:00
fixed memory hit on startup
This commit is contained in:
parent
987f7ca3bf
commit
bed7b41faf
1 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue