Skip to content

Commit fabdeb7

Browse files
goffrieConvex, Inc.
authored andcommitted
Do not look up indexed fields in TransactionIndex::range_batch (#38296)
GitOrigin-RevId: 0540352b2982c27a8831b865aa15ae0d3713cfd5
1 parent cba27dd commit fabdeb7

File tree

3 files changed

+76
-163
lines changed

3 files changed

+76
-163
lines changed

crates/database/src/bootstrap_model/user_facing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ pub async fn index_range_batch<RT: Runtime>(
403403
}
404404
}
405405

406-
let fetch_results = tx.index.range_batch(&mut tx.reads, fetch_requests).await;
406+
let fetch_results = tx.index.range_batch(fetch_requests).await;
407407

408408
for (batch_key, fetch_result) in fetch_results {
409409
let virtual_table_version = virtual_table_versions.get(&batch_key).cloned();

crates/database/src/transaction.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,7 @@ impl<RT: Runtime> Transaction<RT> {
908908

909909
let mut results = self
910910
.index
911-
.range_batch(&mut self.reads, btreemap! { 0 => range_request })
911+
.range_batch(btreemap! { 0 => range_request })
912912
.await;
913913
self.reads
914914
.record_indexed_directly(index_name, IndexedFields::by_id(), interval)?;

0 commit comments

Comments
 (0)