SQL Server, Non-updating updates ...why avoid them clearly explained!
Hi Guys, Today we will talk about Non-updating updates . I recommend that you read because these are important aspects when it comes to performance. I will not go into the details of what happens (maybe in the future) rather I have developed a very clear example. What Non-updating updates are? Well, Enjoy the reading! Non-updating updates A non updating update is an update the not change any value. Suppose we perform an update on field A which contains the value 1 to put the value 1 ... this is it a non updating update. UPDATE TABLE SET MYFIELD = 1 (when the value of the field myfield is already equal to 1) UPDATE TABLE SET MYFIELD = MYFIELD WHERE ... But who is it that does such a thing? ...unfortunately many! Many always perform a single update on all fields in a table, even if these have not changed. To make you understand the weight of this operation, I have developed a simple example that demonstrates the differenc...