Skip to content

Batch resource_params inserts by row, not by resource - #684

Open
vStone wants to merge 1 commit into
OpenVoxProject:mainfrom
UGent-DICT:fix/resource-params-batching-main
Open

vStone wants to merge 1 commit into
OpenVoxProject:mainfrom
UGent-DICT:fix/resource-params-batching-main

Conversation

@vStone

@vStone vStone commented Nov 25, 2026

Copy link
Copy Markdown

The resource_params insert in add-params! was batched per 1000 resources, but emits one row (3 bind parameters) per parameter. A catalog whose new resources average more than ~21 parameters exceeded the PostgreSQL JDBC driver's 65,535 bind-parameter limit, so the replace catalog command failed on every retry.

Batch the flattened rows instead, 10000 at a time.

Fixes #682

The resource_params insert in add-params! was batched per 1000
resources, but emits one row (3 bind parameters) per parameter. A
catalog whose new resources average more than ~21 parameters exceeded
the PostgreSQL JDBC driver's 65,535 bind-parameter limit, so the
replace catalog command failed on every retry.

Batch the flattened rows instead, 10,000 at a time.

Fixes OpenVoxProject#682

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Jan Vansteenkiste <jan@vstone.eu>
@vStone
vStone force-pushed the fix/resource-params-batching-main branch from cbd6470 to 7d4930b Compare November 25, 2026 16:22

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Postgresql error when inserting large catalogs

1 participant