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 #661: IVFFLAT QPS too low
Date: Tue, 27 Aug 2024 02:28:49 +0000
Message-ID: <gh-pgvector-pgvector-661-c2311448076@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-661@github.com>
References: <gh-pgvector-pgvector-661@github.com>

Hi @bantmen, if you're testing performance on a snapshot, [lazy loading](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_RestoreFromSnapshot.html) could be the issue.

> If you access data that hasn't been loaded yet, the DB instance immediately downloads the requested data from Amazon S3, and then continues loading the rest of the data in the background.

If that's the case, you can use [pg_prewarm](https://www.postgresql.org/docs/current/pgprewarm.html) to preload the data.

Also, HNSW should provide better query performance in most cases, and I'd recommend trying the `halfvec` type (and possibly binary quantization) so more of the data fits into memory.

view thread (22+ messages)  latest in thread

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