mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-10 04:47:53 +00:00
make the count....count (#2416)
This commit is contained in:
parent
2fccb87dcf
commit
b6e642338a
1 changed files with 3 additions and 1 deletions
|
|
@ -364,12 +364,14 @@ func (i *insertRowIter) Next(ctx context.Context) (types.Row, error) {
|
|||
}
|
||||
}
|
||||
|
||||
count := batch.Len()
|
||||
|
||||
if err := batch.Import(); err != nil {
|
||||
return nil, errors.Wrap(err, "importing batch")
|
||||
}
|
||||
|
||||
// update the counter for inserts
|
||||
pilosa.PerfCounterSQLInsertsSec.Add(int64(batch.Len()))
|
||||
pilosa.PerfCounterSQLInsertsSec.Add(int64(count))
|
||||
|
||||
return nil, types.ErrNoMoreRows
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue