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

tpcc: remove uneeded origin FK indexes #52931

Merged
merged 1 commit into from
Aug 18, 2020
Merged

Conversation

rohany
Copy link
Contributor

@rohany rohany commented Aug 17, 2020

Work for #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

@rohany rohany requested a review from nvanbenschoten August 17, 2020 19:20
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@rohany
Copy link
Contributor Author

rohany commented Aug 17, 2020

@nvanbenschoten do you know how to update our fixtures for this?

Copy link
Member

@nvanbenschoten nvanbenschoten left a 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: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @nvanbenschoten)

@rohany
Copy link
Contributor Author

rohany commented Aug 17, 2020

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.

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
@rohany
Copy link
Contributor Author

rohany commented Aug 18, 2020

bors r+

@craig
Copy link
Contributor

craig bot commented Aug 18, 2020

Build succeeded:

@craig craig bot merged commit 6c3dfc4 into cockroachdb:master Aug 18, 2020
@tbg tbg mentioned this pull request Aug 27, 2020
25 tasks
nvanbenschoten added a commit to nvanbenschoten/cockroach that referenced this pull request Sep 8, 2020
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.
craig bot pushed a commit that referenced this pull request Sep 10, 2020
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]>
nvanbenschoten added a commit to nvanbenschoten/cockroach that referenced this pull request Oct 16, 2020
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.
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.

3 participants