mirror of
https://github.com/lancedb/lancedb.git
synced 2026-11-26 20:44:00 +00:00
perf(query): avoid opening vector indexes during cosine ANN planning (#5186)
Planning a cosine ANN query opens each distinct index segment to determine its distance scale. Opening the index loads centroids and quantizer data even though the planner only needs the physical index type. Use Lance's batch physical-type lookup for the segment UUIDs in each ANN plan. The planner uses those types to select the existing distance conversion. Query execution still searches the selected segments. The lookup ships in [Lance v15.0.0-beta.31](https://github.com/lance-format/lance/releases/tag/v15.0.0-beta.31). This PR updates the Rust and Java dependencies and the Python test pin to that release. The regression test creates an IVF_RQ index, removes its auxiliary quantizer file, reopens the table in a fresh session, and verifies that a cosine ANN plan can still be built. Existing tests cover modern and legacy PQ scores and ordering across mixed tiers.
This commit is contained in:
+1
-1
@@ -28,7 +28,7 @@
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<arrow.version>15.0.0</arrow.version>
|
||||
<lance-core.version>15.0.0-beta.29</lance-core.version>
|
||||
<lance-core.version>15.0.0-beta.31</lance-core.version>
|
||||
<jackson.version>2.18.12</jackson.version>
|
||||
<spotless.skip>false</spotless.skip>
|
||||
<spotless.version>2.30.0</spotless.version>
|
||||
|
||||
Reference in New Issue
Block a user