pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
From: xiaojunxiang2023 (@xiaojunxiang2023) <noreply+xiaojunxiang2023@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: [pgvector/pgvector] issue #810: Inserting into a pgvector table with an HNSW index is very slow, And update more slow
Date: Thu, 27 Mar 2025 03:11:39 +0000
Message-ID: <gh-pgvector-pgvector-810@github.com> (raw)

  We conducted a performance test on pgvector and were very impressed with its search performance, which is outstanding. We are very fond of this product, but currently, we are facing challenges with slow insert/update speeds.
 
 I tested the insert performance on a table with 1024-dimensional vectors, and found that a single client can only insert about 20 rows per second. The insertion rate decreases over time, and when the dataset reaches millions of rows, the insertion speed drops to around 3 rows per second. 

  This QPS is extremely low for our business use case, where we need to insert 300,000 rows in a short period for scheduled tasks. 
  
  Even with 10 clients inserting in parallel, the speed only improves by about 8 times, which is still too slow. Dropping the index is not a viable solution either, as rebuilding the index consumes significant /dev/shm and CPU resources.
  


view thread (22+ messages)  latest in thread

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