pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
From: ankane (@ankane) <noreply+ankane@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #735: Compression rate with BQ and HNSW
Date: Fri, 13 Dec 2024 15:56:17 +0000
Message-ID: <gh-pgvector-pgvector-735-c2541754499@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-735@github.com>
References: <gh-pgvector-pgvector-735@github.com>

Hi @xcu, I don't have any additional advice (it sounds like you have a good understanding of the index options).

HNSW element tuples take `72 + sizeof(vector)` bytes ([breakdown](https://github.com/pgvector/pgvector/blob/v0.8.0/src/hnsw.h#L328-L338)) and neighbor tuples take `4 + 6 * m * (level + 2)` bytes ([breakdown](https://github.com/pgvector/pgvector/blob/v0.8.0/src/hnsw.h#L342-L348)). There's also overhead for the Postgres [page layout](https://www.postgresql.org/docs/current/storage-page-layout.html) (and free space since tuples won't fit exactly on pages).

view thread (3+ messages)  latest in thread

Message-ID: <gh-pgvector-pgvector-735-c2541754499@github.com>
Permalink:  ../gh-pgvector-pgvector-735-c2541754499@github.com/

 · 


This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox