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: Re: [pgvector/pgvector] issue #810: Inserting into a pgvector table with an HNSW index is very slow, And update more slow
Date: Fri, 28 Mar 2025 04:54:58 +0000
Message-ID: <gh-pgvector-pgvector-810-c2760193484@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-810@github.com>
References: <gh-pgvector-pgvector-810@github.com>

> Yes, see the link above or other resources about Postgres for how this works.

I drop the imgfea_swin_light_test_table_auto_index index, my latest \d info:


```
mme_light=# \d light_test_db.light_test_table;
                 Table "light_test_db.light_test_table"
     Column      |         Type         | Collation | Nullable | Default 
-----------------+----------------------+-----------+----------+---------
 parent_mm_id    | character varying    |           |          | 
 imgfea_swin     | vector(1024)         |           |          | 
 imgfea_resnet50 | vector(1024)         |           |          | 
 mm_id           | character varying    |           | not null | 
 txtembd_bge_m3  | vector(1024)         |           |          | 
Indexes:
    "light_test_table_pkey" PRIMARY KEY, btree (mm_id)
    "light_test_table_txtembd_bge_m3" hnsw (txtembd_bge_m3 vector_l2_ops) WITH (m='16', ef_construction='64') WHERE txtembd_bge_m3 IS NOT NULL
    "mm_id_light_test_table_auto_index" btree (mm_id)
```

I test again, single thread update qps reach 104/sec now, thank you very much. 

view thread (22+ messages)

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