Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decrease default batch size to max allowed parameters for a single statement (PostgreSQL) #609

Closed
2 tasks done
geofranzi opened this issue Jul 21, 2020 · 0 comments
Closed
2 tasks done
Assignees
Milestone

Comments

@geofranzi
Copy link
Member

geofranzi commented Jul 21, 2020

If a dataset is updated all original tuples are retrieved based on the tuple IDs.

List<DataTuple> oraginalsOfEditedTuples = dataTupleRepo.Get(p => editedTupleIds.Contains(p.Id)).ToList(); // all the original tuples edited in the current package

If we have more than 65534 PostgreSQL throws an error:

"The PostgreSQL protocol doesn't allow over 65535 parameters for a single statement."

  • undo set to 100 000 -> set instead to 65 000 to be on the safe side.
  • add comment to warn

bexis@c6d57dd#diff-9c0f3ce81cd6e1f4ae34093425a7c46e

@geofranzi geofranzi changed the title Decrease batch size to max allowed parameters for a single statement (PostgreSQL) Decrease default batch size to max allowed parameters for a single statement (PostgreSQL) Jul 21, 2020
@geofranzi geofranzi added this to the 2.14.1 milestone Jul 29, 2020
@geofranzi geofranzi assigned geofranzi and unassigned DavidBlaa Jul 29, 2020
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

No branches or pull requests

2 participants