Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
38834: workload/tpcc: avoid validating foreign keys after dataset generation r=danhhz a=nvanbenschoten 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 Co-authored-by: Nathan VanBenschoten <[email protected]>
- Loading branch information