From: gs-vkrishnasrujan (@gs-vkrishnasrujan) <noreply+gs-vkrishnasrujan@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #691: halfvec queries taking more time than vector
Date: Mon, 07 Oct 2024 16:45:38 +0000
Message-ID: <gh-pgvector-pgvector-691-c2397420035@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-691@github.com>
References: <gh-pgvector-pgvector-691@github.com>
I'm storing the `vector` and `halfvec` in separate tables and I do have few other columns such as text_id, text_content etc in the table.
I'm using 4gb work_memory in the DB. The purpose of the experiment was to rank IVFFLAT, HNWS and HNSW with `halfvec` so that I could use the better one among the three in production.
After doing EXPLAIN ANALYZE, I have found out that I'm doing `order by desc` which is using multiple workers and doing `heap sort` and `not` using the index properly.