I am looking for a solution for the database of my project.
We have a database of around 70 tables and out of them there are 5-7 tables which have more than 30 million rows each.
One of these huge table is a parent table and it has NVARCHAR primary key column being referred by other tables. Scenario looks as following.
Table1 - Id NVARCHAR PK (30+ M Rows)
Table2 - Id NVARCHAR PK Referring Table1.Id (30+ M Rows)
Table3 - Id NVARCHAR PK Referring Table1.Id (30+ M Rows)
Table4 - Id NVARCHAR PK Referring Table1.Id (30+ M Rows)
Table5 - Id NVARCHAR Referring Table1.Id (30+ M Rows)
And there are some more tables referring Table1.Id probably having less rows but not less than 100,000.
The situation, for security, reasons we need to generate new values for Table1.Id and Update them.
I am thinking of making FK References Update Cascade so that when Update statement runs on Table1 values in all related tables will be updated automatically.
But I am not sure what will be the performance impact. If it slows down the database and eventually the application in production it will not be acceptable at all.
So I need a guidance here about the performance impact of update cascade in such huge tables also it will be great if someone can suggest a better way to achieve this.