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 #821: avg_width for Vector is 18 and for HalfVec is 1544
Date: Mon, 14 Apr 2025 18:46:38 +0000
Message-ID: <gh-pgvector-pgvector-821-c2802641644@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-821@github.com>
References: <gh-pgvector-pgvector-821@github.com>

Hi @idobenamram, the difference in `avg_width` is due to [TOAST](https://www.postgresql.org/docs/current/storage-toast.html) (the vector column is being stored out-of-line). Also, since the table will be smaller with halfvec, a sequence scan can be cheaper for the same number of vectors.

view thread (7+ messages)  latest in thread

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