From: ankane (@ankane) <noreply+ankane@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #781: index not used with cte
Date: Fri, 21 Feb 2025 19:15:19 +0000
Message-ID: <gh-pgvector-pgvector-781-c2675348578@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-781@github.com>
References: <gh-pgvector-pgvector-781@github.com>
This indicates the planner isn't considering the index. I don't immediately see why, but there's not much pgvector can do if this is the case. What's the explain output if you add `MATERIALIZED` to the CTE (with `SET enable_seqscan = off;`)? Also, is `dbpedia_14_chunk_index_idx` a unique index?