Skip to content

Commit

Permalink
Close rows on batch insert to avoid timeout issues. Releasing v0.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pdt256 committed May 3, 2021
1 parent 85c349c commit d19653d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions provider/postgresstore/postgres_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,7 @@ func (s *postgresStore) batchInsert(ctx context.Context, transaction dbQueryable
if err != nil {
return nil, 0, fmt.Errorf("unable to insert: %v", err)
}
defer ignoreClose(rows)

var globalSequenceNumbers []uint64
if !s.pgNotifyIsEnabled {
Expand Down
2 changes: 1 addition & 1 deletion store.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
)

// Version for RangeDB.
const Version = "0.9.0-dev"
const Version = "0.9.0"

// Record contains event data and metadata.
type Record struct {
Expand Down

0 comments on commit d19653d

Please sign in to comment.