hi ,,,
I have a question about what’s the best way to do this operation: I have a database let’s assume that it has 4 tables(the number of table could go up much higher), when I want to do any CRUD(Insert,update,delete) operations for table1 , table2 and table3 I have to do the same operations to table4,now table4 is very critical so I have to make sure all operations are accurate and fast , eventually this table will be used to get system reports so I need it to be fast Now which of the following two ways will be better :
-The first method happens in the database so I create a stored procedure or trigger and when any operation is performed in any table (table1,table2,table3),this activates the trigger that performes the same operation In table4
-The second method happens in program code(asp.net and c#), when any operation is performed for any table (table1,table2,table3) I do the same operation to table4 using class or any code to do this.
And what are the things that we need keep in mind when we choose either way such as security , Database size, application Architecture,and…..
thanks