sql server 2005 - How to denormalize a heavily normalized database system? -
I'm looking to apply some database denormalization in fairly normalized systems.
I have been growing in the amount of set and loads of the database developed more than ten years, so I am looking to improve performance and possibly reduce the complexity of some queries.
To do any work in a stored procedure, it is not unusual to do this in 10. I have been told that and then smells 6
Should I place the table structure and give some physical ideas or criteria to "cache" tables I
Thanks
"itemprop =" text ">
You do not say that what is the problem, what is the display? Yes, so on tables?
Does it really add to the problems that are causing the problem? Or is this stored procedures?
Best Practices: Find out what your obstacles have first discovered before trying to solve your problems.
On editing: I was reminded at the time when we had a functionality problem at the job, very slow procs stored, which can take minutes to complete it has come to know that this speed is complete By the way, the general tables were updating, but Using the cursor for the item update t set c = c + 1 as simple as for id = n .
Then to make an update, The cursor was cursing through a bunch of rows along with the expensive update cursor and declare a cursor to do this as "c from c to id = n" for updates; then select a loop with an open cursor and a reading and an error check and one read and check the error and then select in c @ c; @ C = c + 1; Set the update t c = @c where the cursor's current;
The person who has written it has come to know that we can only issue an updated statement. And so he wrote dozens of these slow procs procs. We did not even need to get rid of the stored procs (although he might have acquired some speed too, it will change our customer); We have got rid of the cursor, taking them to the place of the updated statement. Performance problem persisted.
Comments
Post a Comment