From: ankane (@ankane) <noreply+ankane@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #687: Query returns indexed rows with noticeable "steps"; how to control?
Date: Tue, 01 Oct 2024 01:50:47 +0000
Message-ID: <gh-pgvector-pgvector-687-c2384622234@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-687@github.com>
References: <gh-pgvector-pgvector-687@github.com>
Hmm, pgvector currently gets all rows from the index before the first one is returned, so I don't think the issue is there. Also, I'm not able to get that query to use an index when testing locally with Postgres 16 (even with `enable_seqscan = off`).
If you pass a vector instead of a function call, does it still happen? If not, I'd see if `vertexai_embedding` is marked as `VOLATILE` (the default).