From: ankane (@ankane) <noreply+ankane@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #854: Question about the peak memory usage across different datasets
Date: Fri, 06 Jun 2025 20:36:24 +0000
Message-ID: <gh-pgvector-pgvector-854-c2950736671@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-854@github.com>
References: <gh-pgvector-pgvector-854@github.com>
Hi @Ryanhya, with 4-byte elements, SIFT10M is larger than GIST1M, which is why the in-memory index build will use more memory (there are also more tuples, which will use more memory). However, the final GIST index will have a lot of wasted space (since it's 960 dimensions, so only one vector + neighbors will fit on an 8 KB page), which is why the difference isn't reflected in the final size (this is also why the final size is larger than the in-memory size for this dataset).