Adding a foreign key to a big table without locking both of them
DEV Community
Adding a foreign key to a big table without locking both of them
A plain ADD CONSTRAINT ... FOREIGN KEY validates every row while holding locks on the child and the parent. The NOT VALID and VALIDATE split that avoi
0 comments
No comments yet.