pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
From: hlinnaka (@hlinnaka) <noreply+hlinnaka@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #434: Limit HNSW build's shared memory size for small tables
Date: Fri, 26 Jan 2024 16:56:40 +0000
Message-ID: <gh-pgvector-pgvector-434-c1912379897@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-434@github.com>
References: <gh-pgvector-pgvector-434@github.com>

Hmm, assuming MaxHeapTuplesPerPage gives a very high upper bound. Vectors are large, so in practice you can only fit a few of them on each page, but MaxHeapTuplesPerPage is 291. So assuming MaxHeapTuplesPerPage doesn't seem that useful.

`(relation pages + toast pages) * BLCKSZ / (size of vector with N dimensions)` can be badly wrong in the other direction, if the value is toast-compressed effectively.

view thread (12+ messages)  latest in thread

Message-ID: <gh-pgvector-pgvector-434-c1912379897@github.com>
Permalink:  ../gh-pgvector-pgvector-434-c1912379897@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