From: ankane (@ankane) <noreply+ankane@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #758: Understanding the Design Choice: Why Does pgvector Store Duplicate Vector Data in the Index?
Date: Tue, 21 Jan 2025 18:23:34 +0000
Message-ID: <gh-pgvector-pgvector-758-c2605449138@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-758@github.com>
References: <gh-pgvector-pgvector-758@github.com>
Hi @SunnyBo0302, storing vectors in the index reduces page reads (for performance) and allows support for expression indexes. Also, as far as I know, none of the built-in Postgres index types access heap tuples directly from the [index AM](https://www.postgresql.org/docs/current/indexam.html), so it's not clear to me that there aren't any issues with this.