From: chmaurer (@chmaurer) <noreply+chmaurer@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: [pgvector/pgvector] issue #930: Issue creating large indices
Date: Tue, 02 Dec 2025 06:48:39 +0000
Message-ID: <gh-pgvector-pgvector-930@github.com> (raw)
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?