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

Add FKs in populate step of migration #238

Merged
merged 8 commits into from
Feb 14, 2025
Merged

Conversation

rod-glover
Copy link
Contributor

It is infeasible to do it during (triggers) or after (bulk update), so we do it as part of the populate insert. So much better!

@rod-glover rod-glover marked this pull request as draft February 12, 2025 01:33
@rod-glover
Copy link
Contributor Author

Tested against full test copy of CRMP database, with success.

Ready for review.

@rod-glover rod-glover marked this pull request as ready for review February 12, 2025 15:38
Copy link
Contributor

@Nospamas Nospamas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple of cleanup comments, but the bulk of this logic seems sound, even if I am surprised at the performance difference!

Tests pass on clean checkout. Trusting Rod that data looks correct in actual TestDB usage :)

@rod-glover
Copy link
Contributor Author

Awaiting a couple more verifications of application to test database, then ready to merge.

@rod-glover
Copy link
Contributor Author

Verifications

@rod-glover rod-glover merged commit f0ef712 into master Feb 14, 2025
4 checks passed
@rod-glover rod-glover deleted the obs_raw-populate-with-FKs branch February 14, 2025 19:44
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.

2 participants