Skip to content

Throttle the number of pending txns in WriteBatch #760

@manishrjain

Description

@manishrjain

Currently, WriteBatch can create too many pending txns, which can cause memory issues. Instead, we should add a method SetMaxPending(max int) (default to 100 maybe), which can be enforced via Commit and callback using Throttle. In fact, Throttle can be used to simplify the internals of WriteBatch.

Metadata

Metadata

Labels

kind/enhancementSomething could be better.priority/P0Critical issue that requires immediate attention.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions