Skip to content

Conversation

@adutra
Copy link
Contributor

@adutra adutra commented Feb 12, 2022

Fixes #400

Prior to this change, when the query used for loading is a BATCH query,
DSBulk would forcibly disable its own batching mechanism, to avoid
nesting BATCH statements inside protocol-level BATCH messages, which is
forbidden.

This commit makes it possible for DSBulk to "unwrap" the original batch
query, prepare the child statements individually, and then use its
batching mechanism to group together all resulting child statements in a
(potentially much bigger) BATCH message.

@adutra adutra marked this pull request as ready for review February 15, 2022 21:55
Prior to this change, when the query used for loading is a BATCH query,
DSBulk would forcibly disable its own batching mechanism, to avoid
nesting BATCH statements inside protocol-level BATCH messages, which is
forbidden.

This commit makes it possible for DSBulk to "unwrap" the original batch
query, prepare the child statements individually, and then use its
batching mechanism to group together all resulting child statements in a
(potentially much bigger) BATCH message.
@adutra adutra added this to the 1.9.0 milestone Feb 27, 2022
@adutra adutra merged commit 1a60e21 into 1.x Apr 1, 2022
@adutra adutra deleted the rebatch branch April 1, 2022 08:56
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.

Add ability to unwrap BATCH queries

2 participants