SQL Server, why does the DELETE statement tend to be slow?
Hi Guys, Today i will post only a small and very informat and short post. Just a question to make a little reflection: Why DELETE statement tend to be slow? Enjoy the reading! Why DELETE statement tend to be slow? Surely you know that data is stored in databases within a series of tables. When a database is in the 3rd normal form, tables are linked to each other through referential integrity. It is precisely referential integrity that guarantees data integrity. Suppose we have to manage a list of person. Our table tblperson will have a primary key (ID) and a number of fields such as name, email and gender. The information relating to sex will be contained in another table (tblGender). it will also have a primary key ID field Beetween the field GenderID of the table tblPerson and the field ID of the table tblGender we define a referential integrity . In T-SQL language we can do this by adding a foreign key to the TblPerson: ...