Skip to content

Commit

Permalink
remove insertbatch in statestore plugin (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdil authored Dec 17, 2024
1 parent e1a6c8a commit 7574335
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions plugins/statestore/postgres/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,6 @@ var (
type DurableStore struct {
db postgres.Postgres
sb sq.StatementBuilderType
// insertBatchSize represents the chunk of data to bulk insert.
// This helps avoid the postgres 65535 parameter limit.
// This is necessary because Postgres uses a 32-bit int for binding input parameters and
// is not able to track anything larger.
// Note: Change this value when you know the size of data to bulk insert at once. Otherwise, you
// might encounter the postgres 65535 parameter limit error.
insertBatchSize int
// hold the connection state to avoid multiple connection of the same instance
connected *atomic.Bool
}
Expand All @@ -78,7 +71,6 @@ func NewStateStore(config *Config) *DurableStore {
return &DurableStore{
db: db,
sb: sq.StatementBuilder.PlaceholderFormat(sq.Dollar),
insertBatchSize: 500,
connected: atomic.NewBool(false),
}
}
Expand Down

0 comments on commit 7574335

Please sign in to comment.