From: bantmen (@bantmen) <noreply+bantmen@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:35:27 +0000
Message-ID: <gh-pgvector-pgvector-661-c2311453709@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-661@github.com>
References: <gh-pgvector-pgvector-661@github.com>
Hi @ankane, I have not been testing on a snapshop but I'll keep that in mind for future benchmarks.
I had previously used pg_prewarm to load the embedding table index into memory, which might explain why almost all of the buffer blocks are assigned to it. What table would you recommend prewarming with? I can also try flushing the buffers and running some queries to reset what's cached.
I think HNSW, quantization, and halfvec are all going to be beneficial here. I was hesitating to make my setup more complicated before understanding the above issue as something looks either misconfigured or poorly behaving for my use case for some reason. Let me know if you would suggest going for HNSW sooner rather than later. I do not have a good understanding of how much IO throughput to expect for these workloads.