Skip to content

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

Closed
vStone wants to merge 1 commit into
OpenVoxProject:8.xfrom
UGent-DICT:fix/resource-params-batching
Closed

vStone wants to merge 1 commit into
OpenVoxProject:8.xfrom
UGent-DICT:fix/resource-params-batching

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, 10,000 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>
@vStone vStone closed this Nov 25, 2026
@vStone

vStone commented Nov 25, 2026

Copy link
Copy Markdown
Author

gonna test this first

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.

1 participant