Skip to main content

uses_version_hint

Function uses_version_hint 

Source
pub fn uses_version_hint(object_store: &ObjectStore) -> bool
Expand description

Whether this object store benefits from a version hint.

On stores where listing is lexicographically ordered (S3 Standard, GCS, Azure, …) the latest version is already resolved in roughly one request, so the hint would only add a write per commit for nothing. We write (and read) it only on stores where listing is not lexicographically ordered — S3 Express and the local filesystem. Can be force-disabled with the LANCE_USE_VERSION_HINT=0 environment variable.