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

workload: bump the tpcc fixture version; create statistics when making fixtures #54772

Merged
merged 2 commits into from
Sep 25, 2020

Conversation

RaduBerinde
Copy link
Member

workload: bump the tpcc fixture version

The TPCC fixtures need refreshing: they contain FK indexes that we no
longer need, and they are missing stats for some of the tables.

This commit bumps the fixture version and incorporates the
deprecated-fk-indexes flag into the fixture name.

Release note: None

workload: create statistics when making fixtures

workload make imports a workload and then creates the backup (that
can be later used by workload load).

This change adds functionality to call CREATE STATISTICS on all tables
before creating the backup. This can be turned off using a flag.

Release note: None

I am in the process of regenerating the fixtures with the new version.

Informs #54702.
Informs #50911.

The TPCC fixtures need refreshing: they contain FK indexes that we no
longer need, and they are missing stats for some of the tables.

This commit bumps the fixture version and incorporates the
`deprecated-fk-indexes` flag into the fixture name.

Release note: None
@cockroach-teamcity
Copy link
Member

This change is Reviewable

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.

:lgtm:

Reviewed 1 of 1 files at r1, 2 of 2 files at r2.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @RaduBerinde)


pkg/ccl/workloadccl/fixture.go, line 65 at r2 (raw file):

	// If TableStats is true, CREATE STATISTICS is called on all tables before
	// crating the fixture.

"creating"

@RaduBerinde
Copy link
Member Author

TFTR! Heh, maybe a crate is the right way to store a fixture!
image

`workload make` imports a workload and then creates the backup (that
can be later used by `workload load`).

This change adds functionality to call CREATE STATISTICS on all tables
before creating the backup. This can be turned off using a flag.

Release note: None
@RaduBerinde
Copy link
Member Author

bors r+

@craig
Copy link
Contributor

craig bot commented Sep 25, 2020

Build succeeded:

@craig craig bot merged commit 1230630 into cockroachdb:master Sep 25, 2020
@RaduBerinde RaduBerinde deleted the tpcc-fixtures branch September 29, 2020 16:57
@rafiss rafiss added this to the 20.2 milestone Apr 22, 2021
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