From: jkatz (@jkatz) <noreply+jkatz@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #727: Why is the hnsw index not used?
Date: Sat, 07 Dec 2024 18:36:20 +0000
Message-ID: <gh-pgvector-pgvector-727-c2525272416@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-727@github.com>
References: <gh-pgvector-pgvector-727@github.com>
Yes,the ordering needs to be in ascending order.
Additionally, if you use the default storage type for larger vectors (EXTERNAL), PostgreSQL may determine that a sequential scan is cheaper as it undercounts the amount of effort to complete the scan.
Additionally, pgvector 0.8.0 improves the overall costing methodology for calculating the cost of a HNSW scan.