Skip to content

Commit

Permalink
add a comment to add running counts
Browse files Browse the repository at this point in the history
  • Loading branch information
fschoell committed Dec 19, 2024
1 parent 660f6b7 commit 3459d75
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ func (l *Loader) LiveBlockFlushInterval() int {

func (l *Loader) FlushNeeded() bool {
totalRows := 0
// todo keep a running count when inserting/deleting rows directly
for pair := l.entries.Oldest(); pair != nil; pair = pair.Next() {
totalRows += pair.Value.Len()
}
Expand Down

0 comments on commit 3459d75

Please sign in to comment.