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:
Will Jones
2024-10-18 13:40:24 -07:00
committed by GitHub
parent 48f46d4751
commit 82197c54e4

View File

@@ -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 } => {