pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
[pgvector/pgvector] issue #930: Issue creating large indices
3+ messages / 2 participants
[nested] [flat]

* [pgvector/pgvector] issue #930: Issue creating large indices
@ 2025-12-02 06:48 "chmaurer (@chmaurer)" <noreply+chmaurer@github.com>
  0 siblings, 0 replies; 3+ messages in thread

From: chmaurer (@chmaurer) @ 2025-12-02 06:48 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Hello, we seem to encounter an issue when creating large indices. We have a database, containing several million rows (atm ~4 mio rows). However, when we create a index on the database, the index creation runs very long (>1h) and at some point cpu activity levels off and index creation seems to have died (no more activity from the database, no more cpu activity).

When we split the data into more than 1 partition and then do an index, we are successful (i.e. slices of 1mio rows). However, the query process (obviously our SQL statement is executed against every partition and index, then the results of each index are used and merged together). This process of merging the results takes several seconds (we retrieve 25k rows from each index) and this is too long for our use case.

Tweaking worker processes, work_mem and the like did not change the fact in a substantial manner, so we end up with retrieval times of ~4 seconds (when retrieving 25k rows from 4 mio rows). One index seems to be MUCH faster, but we cannot construct it, as the indexer-process seems to die away. 

Are issues like this known?

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

* Re: [pgvector/pgvector] issue #930: Issue creating large indices
@ 2025-12-02 07:14 ` "ankane (@ankane)" <noreply+ankane@github.com>
  1 sibling, 0 replies; 3+ messages in thread

From: ankane (@ankane) @ 2025-12-02 07:14 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Hi @chmaurer, for indexing, I'd recommend checking [indexing progress](https://github.com/pgvector/pgvector?tab=readme-ov-file#indexing-progress) to see what's happening. Also, check out the docs on [index build time](https://github.com/pgvector/pgvector?tab=readme-ov-file#index-build-time).

For querying, use `EXPLAIN (ANALYZE, BUFFERS)` to debug performance.


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

* Re: [pgvector/pgvector] issue #930: Issue creating large indices
@ 2025-12-02 07:14 ` "ankane (@ankane)" <noreply+ankane@github.com>
  1 sibling, 0 replies; 3+ messages in thread

From: ankane (@ankane) @ 2025-12-02 07:14 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-12-02 07:14 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2025-12-02 06:48 [pgvector/pgvector] issue #930: Issue creating large indices "chmaurer (@chmaurer)" <noreply+chmaurer@github.com>
2025-12-02 07:14 ` "ankane (@ankane)" <noreply+ankane@github.com>
2025-12-02 07:14 ` "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