pg.ddx.io pgvector/pgvector GitHub issues and pull requestshelp / color / mirror / Atom feed
[pgvector/pgvector] issue #786: Question Re. Index Building Being Deterministic 3+ messages / 2 participants [nested] [flat]
* [pgvector/pgvector] issue #786: Question Re. Index Building Being Deterministic @ 2025-02-27 20:21 "rsomani95 (@rsomani95)" <noreply+rsomani95@github.com> 0 siblings, 0 replies; 3+ messages in thread From: rsomani95 (@rsomani95) @ 2025-02-27 20:21 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> Assuming indexing params are consistent between the 3, consider these 3 scenarios: 1. Creating an index first on an empty table, then incrementally adding vectors 2. Adding all vectors first, then creating the index 3. Adding a bunch of vectors, creating the index, then adding a bunch more I have two questions regarding these scenarios: 1. Would building the index N times for the same scenario result in an indentical index? 2. Will all 3 scenarios result in identical indexes? For both questions, if the indexes are not deterministic, would the real world performance for them be roughly the same? ^ permalink raw [nested|flat] 3+ messages in thread
* Re: [pgvector/pgvector] issue #786: Question Re. Index Building Being Deterministic @ 2025-02-27 20:37 "ankane (@ankane)" <noreply+ankane@github.com> 1 sibling, 0 replies; 3+ messages in thread From: ankane (@ankane) @ 2025-02-27 20:37 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> Hi @rsomani95, the HNSW algorithm uses randomness to select the level for each element, so none of the indexes will be exactly the same. They should all have similar query performance, but the index will build the fastest in scenario 2. ^ permalink raw [nested|flat] 3+ messages in thread
* Re: [pgvector/pgvector] issue #786: Question Re. Index Building Being Deterministic @ 2025-02-27 20:37 "ankane (@ankane)" <noreply+ankane@github.com> 1 sibling, 0 replies; 3+ messages in thread From: ankane (@ankane) @ 2025-02-27 20:37 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> @ankane closed this. ^ permalink raw [nested|flat] 3+ messages in thread
end of thread, other threads:[~2025-02-27 20:37 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2025-02-27 20:21 [pgvector/pgvector] issue #786: Question Re. Index Building Being Deterministic "rsomani95 (@rsomani95)" <noreply+rsomani95@github.com> 2025-02-27 20:37 ` "ankane (@ankane)" <noreply+ankane@github.com> 2025-02-27 20:37 ` "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