Skip to content

workload/indexes: support insert and update workloads#109907

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
nvb:nvanbenschoten/indexesUpdateInsert
Sep 1, 2023
Merged

workload/indexes: support insert and update workloads#109907
craig[bot] merged 1 commit intocockroachdb:masterfrom
nvb:nvanbenschoten/indexesUpdateInsert

Conversation

@nvb
Copy link
Copy Markdown
Contributor

@nvb nvb commented Sep 1, 2023

This commit adds support for Insert and Update statements in the indexes workload. Insert statements will fail if they find a collision and update statements will fail if they don't, so each workload has specific requirements, which are documented on the flag.

Epic: None
Release note: None

This commit adds support for Insert and Update statements in the indexes
workload. Insert statements will fail if they find a collision and update
statements will fail if they don't, so each workload has specific
requirements, which are documented on the flag.

Epic: None
Release note: None
@nvb nvb requested a review from DrewKimball September 1, 2023 17:09
@nvb nvb requested a review from a team as a code owner September 1, 2023 17:09
@nvb nvb requested review from renatolabs and smg260 and removed request for a team September 1, 2023 17:09
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown
Collaborator

@DrewKimball DrewKimball left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm: Looks great!

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @renatolabs and @smg260)

@srosenberg srosenberg self-requested a review September 1, 2023 18:12
Copy link
Copy Markdown
Member

@srosenberg srosenberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding these! I am curious what prompted the change?

@nvb
Copy link
Copy Markdown
Contributor Author

nvb commented Sep 1, 2023

TFTRs!

bors r=DrewKimball,srosenberg

I am curious what prompted the change?

Drew and I are working on measuring the performance characteristics of secondary indexes on different workloads. It turns out that UPSERT is not a great place to start for these kinds of measurements, because it exploits a fast-path for the single-index case which is not applicable to other workload shapes.

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Sep 1, 2023

Build succeeded:

@craig craig bot merged commit bdf2b4e into cockroachdb:master Sep 1, 2023
@nvb nvb deleted the nvanbenschoten/indexesUpdateInsert branch September 5, 2023 21:03
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.

4 participants