You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
With approximate indexes, queries with filtering can return less results (due to post-filtering).
459
-
460
-
Starting with 0.8.0, you can enable iterative index scans. If too few results from the initial scan match the filters, the scan will resume until enough results are found (or it reaches`hnsw.max_scan_tuples` or`ivfflat.max_probes`). This can significantly improve recall.
458
+
With approximate indexes, queries with filtering can return less results (due to post-filtering). Starting with 0.8.0, you can enable iterative index scans. If too few results from the initial scan match the filters, the scan will resume until enough results are found (or it reaches`hnsw.max_scan_tuples` or`ivfflat.max_probes`). This can significantly improve recall.
461
459
462
460
There are two modes for iterative scans: strict and relaxed.
463
461
@@ -475,8 +473,6 @@ SET hnsw.iterative_scan = relaxed_order;
475
473
SETivfflat.iterative_scan= relaxed_order;
476
474
```
477
475
478
-
Note: IVFFlat only supports relaxed ordering for iterative scans
479
-
480
476
With relaxed ordering, you can use a[materialized CTE](https://www.postgresql.org/docs/current/queries-with.html#QUERIES-WITH-CTE-MATERIALIZATION) to get strict ordering