cashapp / pranadb

Apache License 2.0
612 stars 24 forks source link

Reaper should keep iterators open #594

Closed purplefox closed 2 years ago

purplefox commented 2 years ago

Current the reaper opens a new iterator per table per shard every time it is invoked, this requires a seek which is a potentially expensive operation in an LSM esp. when there is a lot of data. We should consider keeping the pebble iterators open between invocations of the reaper to reduce the number of seeks.