From: ankane (@ankane) <noreply+ankane@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #678: Iterative index scans
Date: Tue, 22 Oct 2024 05:25:38 +0000
Message-ID: <gh-pgvector-pgvector-678-c2428287137@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-678@github.com>
References: <gh-pgvector-pgvector-678@github.com>
Hi all, the current plan is to release 0.8.0 next week.
Rather than default no limit for `hnsw.max_search_tuples`, I think it'll be more clear to default to 20,000 (which is right around where search will end with the default `work_mem`). I think it's better to make this the main parameter to control search depth for HNSW, as in the future, search could spill to disk and continue once `work_mem` is exceeded.
I'm also considering adding an `hnsw.search_mem_multiplier` option ([search-mem-multiplier branch](https://github.com/pgvector/pgvector/compare/search-mem-multiplier)) to make it easier for users to adjust `work_mem` just for HNSW searches (similar to [hash_mem_multiplier](https://www.postgresql.org/docs/current/runtime-config-resource.html#GUC-HASH-MEM-MULTIPLIER)).
Let me know if you have any thoughts.