mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-16 01:26:56 +08:00
Use fabs [skip ci]
This commit is contained in:
@@ -135,7 +135,7 @@ GetScanItems(IndexScanDesc scan, Datum value)
|
|||||||
IvfflatScanList *scanlist = (IvfflatScanList *) pairingheap_remove_first(so->listQueue);
|
IvfflatScanList *scanlist = (IvfflatScanList *) pairingheap_remove_first(so->listQueue);
|
||||||
|
|
||||||
/* Query-aware dynamic pruning */
|
/* Query-aware dynamic pruning */
|
||||||
if (scanlist->distance > 2 * so->minDistance)
|
if (fabs(scanlist->distance) > 1.5 * fabs(so->minDistance))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
searchPage = scanlist->startPage;
|
searchPage = scanlist->startPage;
|
||||||
|
|||||||
Reference in New Issue
Block a user