-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
`optTableUpserter` was incorrectly using `curBatchSize` method implementation of `tableUpserterBase` which returns the number of rows in `insertRows` row container, but that container is not actually used `optTableUpserter`. As a result, `curBatchSize` was always considered 0, and we didn't perform the pagination on the UPSERTs when driven by the optimizer. Release note (bug fix): Previously, CockroachDB could hit a "command is too large" error when performing UPSERT operation with many values. Internally, we attempt to perform such operation by splitting it into "batches", but the batching mechanism was broken.
- Loading branch information
1 parent
7842e48
commit 2643e24
Showing
2 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters