Delaying constraint checks until commit? #307
farzadbekran
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I was thinking it might be a good idea to have some way to delay constraint checks until
commit. Here is an example scenario:Imagine I have RelVar
aandb, now RelVarbhas an attribute that is foreign key froma. Now if I want to make a change to the attributes ofa, I need toundefinea, make changes to the attribs and update the tuples accordingly and redefine it. But sincebdepends onaexisting, this fails as I can't simplyundefinea, which means I have toundefineconstaints forbto be able to changea, and if we have a RelVarcwhich depends onb, we have a nightmare on our hands! I assume the is no easy way to determine what constraints referencea, so that it can be somewhat automated or something.But if I can disable constraint checks temporarily, I can make my changes to
awithout having toundefineconstraints forbandcin the process. Hope this makes sense!This would come in handy specially if I need to make a quick change in production.
Beta Was this translation helpful? Give feedback.
All reactions