-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
tpcc: remove uneeded origin FK indexes #52931
Conversation
@nvanbenschoten do you know how to update our fixtures for this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
do you know how to update our fixtures for this?
I think this is what workload fixtures make
is for. It IMPORTs a dataset into a cluster and then stores a BACKUP in our "fixtures" GCS bucket.
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @nvanbenschoten)
Thanks! I'll do that once this PR lands. I assume that this command will take hours to complete... |
Work for cockroachdb#50911. This commit removes the `history_customer_fk_idx`, `history_district_fk_idx` and `order_line_stock_fk_idx` indexes from the TPCC schema, as they are no longer needed. Release note: None
bors r+ |
Build succeeded: |
We were quoting the table name in order to avoid clashing with the reserved keyword, but this was tripping up the index existence check. We were then silently swallowing this error. This meant that the table was not properly partitioned, which likely had a large negative impact on New-Order transactions, which insert into the table. While here, remove references to the three indexes deleted in cockroachdb#52931. Release justification: testing only.
54064: workload/tpcc: properly partition order.order_idx index r=nvanbenschoten a=nvanbenschoten Spotted by @drewdeally. We were quoting the table name in order to avoid clashing with the reserved keyword, but this was tripping up the index existence check. We were then silently swallowing this error. This meant that the table was not properly partitioned, which likely had a large negative impact on New-Order transactions, which insert into the table. While here, remove references to the three indexes deleted in #52931. Release justification: testing only. Co-authored-by: Nathan VanBenschoten <[email protected]>
We were quoting the table name in order to avoid clashing with the reserved keyword, but this was tripping up the index existence check. We were then silently swallowing this error. This meant that the table was not properly partitioned, which likely had a large negative impact on New-Order transactions, which insert into the table. While here, remove references to the three indexes deleted in cockroachdb#52931. Release justification: testing only.
Work for #50911.
This commit removes the
history_customer_fk_idx
,history_district_fk_idx
andorder_line_stock_fk_idx
indexes from theTPCC schema, as they are no longer needed.
Release note: None