* filer: read KV keys a few at a time for a store without batch reads
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* abstract_sql: read KV keys with one query
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* redis: read KV keys in one pipeline
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* etcd: read KV keys in read-only transactions
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* mongodb: read KV keys with one query
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* cassandra: read KV keys concurrently
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* hbase: read KV keys concurrently
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* elastic: read KV keys concurrently
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* arangodb: read KV keys with one request
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* foundationdb: read KV keys in one transaction
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* ydb: read KV keys with one query
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* tarantool: send KV reads before waiting for any
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* filer: every filer store reads KV keys in batches
KvBatchGet moves from the optional KvBatchReader onto FilerStore. A listing
now reads the hard link records of its waiting entries together from any
store, a path-specific one included.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* tikv: count only the record reads of a listing in its test
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* filer: return every batched key that pads to the same stored row
SQL, MongoDB and YDB pad a short KV key with zero bytes, so "short" and
"short\x00" read the same row. KvBatchGet kept only the last such key.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* filer: read keys in a plain loop when KvGetEach runs one at a time
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* filer: end a listing at a short page from a store that fills its pages
ListEntries read a directory a page at a time and stopped at the first
empty page, so every listing the caller's limit did not cut ended with
one more scan of the store, from the last name on, that returned
nothing: two scans for a directory smaller than a page.
A page that comes back short of its limit now ends the listing when the
store says it fills its pages (the new optional FullPageListingStore).
leveldb, leveldb2, leveldb3 and TiKV do: they iterate the directory's
keys until the limit is handed over or the keys end. A store that cuts a
page of names to the limit and then drops some (the Redis stores, for a
name whose entry is gone or expired) can end a page short with names
behind it; it does not declare the interface and is asked until a page
comes back empty, as before.
TiKV's listing swallowed an iterator error while it skipped the start
name or an expired entry, and ended the page there. It returns the error
now: a page that ends short must mean the keys ended.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* filer: see through the path translator for a store that fills its pages
A path-specific store is wrapped in FilerStorePathTranslator, which does not
implement FullPageListingStore, so its directories kept the extra empty scan.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* filer: keep the last listed name when a refill lists nothing
A page that lost entries to expiry is refilled from its last name. A refill
that found nothing returned an empty last name, so the next page of a store
that does not fill its pages started over at the top of the directory and
listed every entry again.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* filer: name the stores that fill their pages instead of an interface
A short list of store names in Filer.ListsFullPages replaces the
FullPageListingStore interface, the wrapper method and the per-store
declarations. A path translator reports its backend's name, so it needs
no unwrapping.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* foundationdb: read a listing in batches until it fills the page
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* redis: fill a listing page past orphaned and expired members
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* redis2: fill a listing page past orphaned and expired members
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* mongodb: report a cursor error that ends a listing
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* tarantool: fail a listing on a malformed reply
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* filer: test the last listed name after a refill that lists nothing
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* filer: end a listing at a short page from any store
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* rocksdb: build the tests against the current NewFiler
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* rocksdb: count only listed entries toward the page limit
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* rocksdb: return the decode error instead of ending the listing
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: MapleWhiteZZZ <18653045+MapleWhiteZZZ@users.noreply.github.com>
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com>