1
0
Fork 0

Stricter queue batch logic

master
Philip O'Toole 2 years ago
parent b10f911524
commit 49e6b50e4d

@ -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:

Loading…
Cancel
Save