mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 02:44:59 +00:00
parent
965ad15829
commit
f2812309ac
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