pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
From: ankane (@ankane) <noreply+ankane@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #662: Normal filtering doesn't seem to use normal index
Date: Tue, 27 Aug 2024 22:06:26 +0000
Message-ID: <gh-pgvector-pgvector-662-c2313658587@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-662@github.com>
References: <gh-pgvector-pgvector-662@github.com>

Hi @Jontpan, Postgres doesn't account for TOAST in the seq scan cost, which can make it look cheaper. You can use `SET LOCAL enable_seqscan = off;` inside a transaction to encourage the planner to use indexes for a specific query.

view thread (3+ messages)  latest in thread

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