Stricter queue batch logic

This commit is contained in:
Philip O'Toole
2022-05-23 10:54:45 -04:00
parent b10f911524
commit 49e6b50e4d

View File

@@ -168,7 +168,7 @@ func (q *Queue) run() {
if len(queuedStmts) == 1 {
timer.Reset(q.timeout)
}
if len(queuedStmts) >= q.batchSize {
if len(queuedStmts) == q.batchSize {
writeFn()
}
case <-timer.C: