-
Notifications
You must be signed in to change notification settings - Fork 4.1k
perf: reuse iterators within read-only batches #6803
Copy link
Copy link
Closed
Labels
C-performancePerf of queries or internals. Solution not expected to change functional behavior.Perf of queries or internals. Solution not expected to change functional behavior.
Milestone
Description
Read-only batches (BatchRequest.IsReadOnly) execute directly upon a *RocksDB which bypasses the optimization to reuse iterators across execution of a command that occurs when using a *rocksDBBatch. We could create a rocksDBReadOnly engine which performed similar iterator reuse without creating an associated batch for writes. Or, we could change *rocksDBBatch to only create the C++ batch when the first mutation occurs.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
C-performancePerf of queries or internals. Solution not expected to change functional behavior.Perf of queries or internals. Solution not expected to change functional behavior.