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:02:12 +0000
Message-ID: <gh-pgvector-pgvector-846-c2910897917@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-846@github.com>
References: <gh-pgvector-pgvector-846@github.com>
Hi @developerayuva, both queries in Case I should be doing a seq scan.
1. What version of pgvector are you on?
2. Does running `ANALYZE vector_collection2;` fix the first query?
3. What's the output of `EXPLAIN ANALYZE` with `SET enable_seqscan = off;` for the first query?