Hello Frinds,
I am getting a major performace hit in my Stored Procedures.
Actually the story started from writing stored procedure for reporting requirements.
We started with writing big sqls in stored procedures. But ultimately Our SPs were taking long time to get executed. Then we tried using temporary tables in Db2 Stored procedures. They seemed to work but when we tested new SPs on live data, again we got a hit.
Now we are again thinking whihc way to go - whether Temporary tables or no temp Tables.
I know it would be a mix and match from case to case. But can anybosy give me some Tips and Tricks to wrire optimized Stored Procedures or Queries...
Thanks in Advance
Shuchi
I am getting a major performace hit in my Stored Procedures.
Actually the story started from writing stored procedure for reporting requirements.
We started with writing big sqls in stored procedures. But ultimately Our SPs were taking long time to get executed. Then we tried using temporary tables in Db2 Stored procedures. They seemed to work but when we tested new SPs on live data, again we got a hit.
Now we are again thinking whihc way to go - whether Temporary tables or no temp Tables.
I know it would be a mix and match from case to case. But can anybosy give me some Tips and Tricks to wrire optimized Stored Procedures or Queries...
Thanks in Advance
Shuchi