From: ankane (@ankane) <noreply+ankane@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #902: Optimizing distance + date queries
Date: Mon, 29 Sep 2025 11:07:47 +0000
Message-ID: <gh-pgvector-pgvector-902-c3346347699@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-902@github.com>
References: <gh-pgvector-pgvector-902@github.com>
I suspect increasing RAM will help, but a few more questions:
1. What's the output of `\d news` in `psql`?
2. What's the output of the query below in `psql`?
```sql
EXPLAIN (ANALYZE, BUFFERS)
SELECT id FROM news
WHERE
published_at >= '2025-08-30 09:56:00.126+00' AND
published_at <= '2025-09-29 09:56:00.126+00' AND
embedding_vector <#> '[add vector here]' < -0.31
ORDER BY published_at DESC LIMIT 10;
```