-
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.
workload/tpcc: avoid validating foreign keys after dataset generation
Foreign key validation was adding a significant amount of time to the initialization of TPC-C. This was especially true on very large datasets. This commit uses the new (as of #38663) ability to create Foreign Key constraints in the Unvalidated state using the NOT VALID syntax to avoid this extra work. This will work with old versions of CockroachDB as well, because the NOT VALID syntax has been around for a very long time, it was just ignored up until #38663. Release note: None
- Loading branch information
1 parent
3d822b4
commit facc618
Showing
1 changed file
with
17 additions
and
10 deletions.
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