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 cockroachdb#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 cockroachdb#38663. Release note: None
- Loading branch information