pg.ddx.io pgvector/pgvector GitHub issues and pull requestshelp / color / mirror / Atom feed
[pgvector/pgvector] issue #758: Understanding the Design Choice: Why Does pgvector Store Duplicate Vector Data in the Index? 4+ messages / 2 participants [nested] [flat]
* [pgvector/pgvector] issue #758: Understanding the Design Choice: Why Does pgvector Store Duplicate Vector Data in the Index? @ 2025-01-16 04:15 "SunnyBo0302 (@SunnyBo0302)" <noreply+SunnyBo0302@github.com> 0 siblings, 0 replies; 4+ messages in thread From: SunnyBo0302 (@SunnyBo0302) @ 2025-01-16 04:15 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> In studying pgvector, I observed that it stores duplicate vectors directly within the index. What is the rationale behind this design choice? Considering that storing only TIDs in the index would allow direct access to the heap file, is this approach primarily motivated by performance optimization? ^ permalink raw [nested|flat] 4+ messages in thread
* Re: [pgvector/pgvector] issue #758: Understanding the Design Choice: Why Does pgvector Store Duplicate Vector Data in the Index? @ 2025-01-21 18:23 ` "ankane (@ankane)" <noreply+ankane@github.com> 2 siblings, 0 replies; 4+ messages in thread From: ankane (@ankane) @ 2025-01-21 18:23 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> Hi @SunnyBo0302, storing vectors in the index reduces page reads (for performance) and allows support for expression indexes. Also, as far as I know, none of the built-in Postgres index types access heap tuples directly from the [index AM](https://www.postgresql.org/docs/current/indexam.html), so it's not clear to me that there aren't any issues with this. ^ permalink raw [nested|flat] 4+ messages in thread
* Re: [pgvector/pgvector] issue #758: Understanding the Design Choice: Why Does pgvector Store Duplicate Vector Data in the Index? @ 2025-01-21 18:23 ` "ankane (@ankane)" <noreply+ankane@github.com> 2 siblings, 0 replies; 4+ messages in thread From: ankane (@ankane) @ 2025-01-21 18:23 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> @ankane closed this. ^ permalink raw [nested|flat] 4+ messages in thread
* Re: [pgvector/pgvector] issue #758: Understanding the Design Choice: Why Does pgvector Store Duplicate Vector Data in the Index? @ 2025-01-23 05:41 ` "SunnyBo0302 (@SunnyBo0302)" <noreply+SunnyBo0302@github.com> 2 siblings, 0 replies; 4+ messages in thread From: SunnyBo0302 (@SunnyBo0302) @ 2025-01-23 05:41 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> Thank you so much for the reply, @ankane! Are there any active communities or forums where we can discuss and share knowledge about pgvector? It would be great to connect with others working on similar projects or exploring its capabilities. ^ permalink raw [nested|flat] 4+ messages in thread
end of thread, other threads:[~2025-01-23 05:41 UTC | newest] Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2025-01-16 04:15 [pgvector/pgvector] issue #758: Understanding the Design Choice: Why Does pgvector Store Duplicate Vector Data in the Index? "SunnyBo0302 (@SunnyBo0302)" <noreply+SunnyBo0302@github.com> 2025-01-21 18:23 ` "ankane (@ankane)" <noreply+ankane@github.com> 2025-01-21 18:23 ` "ankane (@ankane)" <noreply+ankane@github.com> 2025-01-23 05:41 ` "SunnyBo0302 (@SunnyBo0302)" <noreply+SunnyBo0302@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