Yeah, I know how to design a database and normalize tables, but this is some optimization stuff I never had to do. It was fun!
We recently encountered the task of optimizing a stored procedure that was taking very long to perform its business. It wasn’t that complicated but it was operating on a large table (350,000 records). The table has indexes on the columns in the select clauses but the procedure still took about 19 seconds to do its work. (Thanks for the help, Santo!)