pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
From: backroot (@backroot) <noreply+backroot@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #749: Enhancement: Increase 1,000 non-zero elements limit to 1,200 for sparsevec when creating HNSW index
Date: Mon, 20 Apr 2026 17:14:59 +0000
Message-ID: <gh-pgvector-pgvector-749-c4282837342@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-749@github.com>
References: <gh-pgvector-pgvector-749@github.com>

Hi,

I’m interested in working on this issue and had a quick question before starting.

Is the current limit of 1,000 non-zero elements in `sparsevec` primarily driven by storage constraints (e.g., fitting within a single page / varlena size), performance considerations, or something specific to HNSW indexing?

If we increase the limit to 1,200, are there known concerns around memory layout, TOAST usage, or index performance that should be taken into account?

I’d be happy to prototype a change and include tests/benchmarks, but wanted to confirm the intended constraints and any design considerations first.

Thanks!


view thread (6+ messages)

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