pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
[pgvector/pgvector] issue #763: About HNSW Real-Time updates degradation
5+ messages / 2 participants
[nested] [flat]

* [pgvector/pgvector] issue #763: About HNSW Real-Time updates degradation
@ 2025-01-21 18:16  "M1nlex (@M1nlex)" <noreply+M1nlex@github.com>
  0 siblings, 0 replies; 5+ messages in thread

From: M1nlex (@M1nlex) @ 2025-01-21 18:16 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Hi,

I'm considering using HNSW to do ANN in a personal project, and I'm very likely to use pgvector for this purpose.

While searching for informations about HNSW in general, and more specifically how to update/delete points from the graph, I found out about the degradation of performances (in terms of recall and unreachable points) over time when trying to modify or delete already existing points from the HNSW.

A simple fix this problem would be to recompute the index after a while, but that would result in a lot of build time.

I found out in this article (https://arxiv.org/abs/2407.07871) that some algorithms have been proposed to solve this issue and allow real-time updates of HNSW indexes.

Does pgvector implements this algorithm or any alternative solution to this problem ? Or are there any plan on working on it ?

Best regards.

^ permalink  raw  [nested|flat] 5+ messages in thread

* Re: [pgvector/pgvector] issue #763: About HNSW Real-Time updates degradation
@ 2025-01-21 18:31  "ankane (@ankane)" <noreply+ankane@github.com>
  3 siblings, 0 replies; 5+ messages in thread

From: ankane (@ankane) @ 2025-01-21 18:31 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Hi @M1nlex, see https://github.com/pgvector/pgvector/issues/335#issuecomment-1863698895.

^ permalink  raw  [nested|flat] 5+ messages in thread

* Re: [pgvector/pgvector] issue #763: About HNSW Real-Time updates degradation
@ 2025-01-21 18:31  "ankane (@ankane)" <noreply+ankane@github.com>
  3 siblings, 0 replies; 5+ messages in thread

From: ankane (@ankane) @ 2025-01-21 18:31 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

@ankane closed this.

^ permalink  raw  [nested|flat] 5+ messages in thread

* Re: [pgvector/pgvector] issue #763: About HNSW Real-Time updates degradation
@ 2025-01-21 19:49  "M1nlex (@M1nlex)" <noreply+M1nlex@github.com>
  3 siblings, 0 replies; 5+ messages in thread

From: M1nlex (@M1nlex) @ 2025-01-21 19:49 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Thanks for your quick answer ! How is the vacuum policy activated ? Is it only through the SQL command VACUUM ? (https://www.postgresql.org/docs/current/sql-vacuum.html)

^ permalink  raw  [nested|flat] 5+ messages in thread

* Re: [pgvector/pgvector] issue #763: About HNSW Real-Time updates degradation
@ 2025-01-21 19:56  "ankane (@ankane)" <noreply+ankane@github.com>
  3 siblings, 0 replies; 5+ messages in thread

From: ankane (@ankane) @ 2025-01-21 19:56 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

By default, tables are autovacuumed when 20% of rows (+ 50) change. https://www.postgresql.org/docs/current/routine-vacuuming.html#AUTOVACUUM

^ permalink  raw  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2025-01-21 19:56 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2025-01-21 18:16 [pgvector/pgvector] issue #763: About HNSW Real-Time updates degradation "M1nlex (@M1nlex)" <noreply+M1nlex@github.com>
2025-01-21 18:31 ` "ankane (@ankane)" <noreply+ankane@github.com>
2025-01-21 18:31 ` "ankane (@ankane)" <noreply+ankane@github.com>
2025-01-21 19:49 ` "M1nlex (@M1nlex)" <noreply+M1nlex@github.com>
2025-01-21 19:56 ` "ankane (@ankane)" <noreply+ankane@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