From: ankane (@ankane) <noreply+ankane@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #810: Inserting into a pgvector table with an HNSW index is very slow, And update more slow
Date: Fri, 28 Mar 2025 04:14:40 +0000
Message-ID: <gh-pgvector-pgvector-810-c2760131869@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-810@github.com>
References: <gh-pgvector-pgvector-810@github.com>
Based on the `EXPLAIN` output:
- It's using an index to lookup the row to update (which is taking < 0.05 ms)
- The HNSW index is in-memory
It looks like you've only shared a subset of the schema, so it may be something with one of the other indexes or constraints.
Edit: If this was an issue with the HNSW index, it should show up in the insert time as well (both operations are identical from an indexing perspective).