kvstore: use batch delete to cleanup old events (#112737)

* use batchdelete for cleaning up old events

* comment
This commit is contained in:
Georges Chaudy
2025-10-27 12:27:31 +01:00
committed by GitHub
parent b53e3ac860
commit bc9540fadb
3 changed files with 82 additions and 12 deletions
+1 -1
View File
@@ -364,7 +364,7 @@ func (d *dataStore) Get(ctx context.Context, key DataKey) (io.ReadCloser, error)
// BatchGet retrieves multiple data objects in batches.
// It returns an iterator that yields DataObj results for the given keys.
// Keys are processed in batches (default 50) to balance between efficiency and memory usage.
// Keys are processed in batches (default 50).
// Non-existent entries will not appear in the result.
func (d *dataStore) BatchGet(ctx context.Context, keys []DataKey) iter.Seq2[DataObj, error] {
return func(yield func(DataObj, error) bool) {