pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
From: prathier (@prathier) <noreply+prathier@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #719: SELECT WHERE ORDER BY LIMIT no results
Date: Tue, 26 Nov 2024 20:46:10 +0000
Message-ID: <gh-pgvector-pgvector-719-c2501903593@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-719@github.com>
References: <gh-pgvector-pgvector-719@github.com>

I'm using 0.7.0. I've tried using subquery or other alternative but I can't force postgresql to process filters before processing the vector index scan. 

Limit  (cost=257.88..334.67 rows=10 width=2216) (actual time=115.136..115.139 rows=0 loops=1)
[...]
        ->  Index Scan using public_vector_table_embedding_idx on public_vector_table v  (cost=257.44..11133279.04 rows=7090160 width=1286) (actual time=108.785..110.447 rows=41 loops=1)
              Order By: (embedding <#> '[-0.033447266,...,0.012573242]'::halfvec)
            [...]
              ->  Index Scan using public_files_pkey on public_files f  (cost=0.43..0.62 rows=1 width=1865) (actual time=0.136..0.136 rows=0 loops=33)
                    Index Cond: (id = v.file_id)
                    Filter: (((type)::text = ANY ('{LAW,JP}'::text[])) AND ((status)::text = 'PROCESSED'::text))
  


view thread (31+ messages)  latest in thread

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