mirror of
https://github.com/lancedb/lancedb.git
synced 2026-05-17 20:10:39 +00:00
perf: eliminate iop in refresh (#1760)
Closes #1741 If we checkout a version, we need to make a `HEAD` request to get the size of the manifest. The new `checkout_latest()` code path can skip this IOP. This makes the refresh slightly faster.
This commit is contained in:
@@ -54,9 +54,7 @@ impl DatasetRef {
|
||||
last_consistency_check,
|
||||
..
|
||||
} => {
|
||||
*dataset = dataset
|
||||
.checkout_version(dataset.latest_version_id().await?)
|
||||
.await?;
|
||||
dataset.checkout_latest().await?;
|
||||
last_consistency_check.replace(Instant::now());
|
||||
}
|
||||
Self::TimeTravel { dataset, version } => {
|
||||
|
||||
Reference in New Issue
Block a user