From: ankane (@ankane) <noreply+ankane@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #846: Unexpected use of Index Scan in ANN query without LIMIT or enable_indexscan
Date: Tue, 27 May 2025 02:37:41 +0000
Message-ID: <gh-pgvector-pgvector-846-c2910940024@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-846@github.com>
References: <gh-pgvector-pgvector-846@github.com>
Thanks (and thanks for including `enable_indexscan = off`, which is what I meant for 3). It looks like the cost estimate of the index scan is cheaper than the seq scan for some reason. This seems like a pretty uncommon setup (5-dimensional vectors w/ m = 8 w/ partitioning), but will try to spend some time this week to see why.