pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
From: idobenamram (@idobenamram) <noreply+idobenamram@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: Tue, 15 Apr 2025 08:04:19 +0000
Message-ID: <gh-pgvector-pgvector-821-c2804183545@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-821@github.com>
References: <gh-pgvector-pgvector-821@github.com>

ah interesting thank you for the information, i didn't know about toast.
one last question: what i don't understand is then why does the planner pick the index for the vector type and not for the halfvec type? when i try to force it to use the index (i was able to achieve this by setting `SET random_page_cost = 1.1;`) 
it comes out mostly faster than the seq scan. 
again whats not clear to me is why for the vector type works with the default settings and halfvec doens't.

thanks again for the quick reply and all the help! @jkatz @ankane 

view thread (7+ messages)  latest in thread

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