pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
[pgvector/pgvector] issue #808: Bulk Distance Calculations with PG-Vector
3+ messages / 2 participants
[nested] [flat]

* [pgvector/pgvector] issue #808: Bulk Distance Calculations with PG-Vector
@ 2025-03-26 23:08  "frapercan (@frapercan)" <noreply+frapercan@github.com>
  0 siblings, 0 replies; 3+ messages in thread

From: frapercan (@frapercan) @ 2025-03-26 23:08 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

I’ve noticed that when using PG-Vector for large-scale distance calculations, performance can become an issue. The core functionality in PG-Vector is excellent, but for massive distance computations, exporting the vectors to memory and leveraging established libraries (e.g., [scikit-learn](https://scikit-learn.org/)) often proves much more efficient.

I'm trying to figure out how to leverage the benefits of having vectors stored directly in the database, since this is all new to me.

I’m happy to share more details based on my own experience if that would be helpful. Hoping this contributes to making pgvector even more user-friendly.

Regards,
frapercan

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

* Re: [pgvector/pgvector] issue #808: Bulk Distance Calculations with PG-Vector
@ 2025-03-26 23:19  "ankane (@ankane)" <noreply+ankane@github.com>
  1 sibling, 0 replies; 3+ messages in thread

From: ankane (@ankane) @ 2025-03-26 23:19 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Hi @frapercan, for massive distance computations, you'll want to use a library that stores vectors in contiguous memory and supports matrix operations (a row-oriented database isn't optimized for this use case).

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

* Re: [pgvector/pgvector] issue #808: Bulk Distance Calculations with PG-Vector
@ 2025-03-26 23:19  "ankane (@ankane)" <noreply+ankane@github.com>
  1 sibling, 0 replies; 3+ messages in thread

From: ankane (@ankane) @ 2025-03-26 23:19 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-03-26 23:19 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2025-03-26 23:08 [pgvector/pgvector] issue #808: Bulk Distance Calculations with PG-Vector "frapercan (@frapercan)" <noreply+frapercan@github.com>
2025-03-26 23:19 ` "ankane (@ankane)" <noreply+ankane@github.com>
2025-03-26 23:19 ` "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