pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
From: knizhnik (@knizhnik) <noreply+knizhnik@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] PR #282: Hnsw iterator
Date: Mon, 02 Oct 2023 05:05:22 +0000
Message-ID: <gh-pgvector-pgvector-282-c1742405024@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-282@github.com>
References: <gh-pgvector-pgvector-282@github.com>

> Yeah, equality on distance is a bit dubious.

Sure. Originally I tried `(dist * 100)::integer` which may have some sense but Postgres is not smart enough to understand that the order is preserved after such transformation and uses hash join in this case.

> That happens to work, though. 

Sorry, but why `UNION ALL` and not `UNION`? 
`UNION ALL` doesn't remove duplicates so for it order is not important.


view thread (33+ messages)  latest in thread

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