2008 Jul 18 3:24 PM
Hi Gurus,
If we write two select queries in a program(or)redundant statements,with what performance tuning option we can find out it.
Regards,
Rakesh.
Hi Gurus,
If we write two select queries in a program(or)redundant statements,with what performance tuning option we can find out it.
Regards,
Rakesh.
2008 Jul 18 3:58 PM
Scanning the code with your eye is the most reliable method.
2008 Jul 18 4:52 PM
Hi Rakesh,
you could run a ST05 trace and summarize on SQL statements. This will show how often a SQL statement has run during your trace. You find a count for each statement. If you compair the number with the number you expect, you could find the statements called to often.
Regards
Ralph
2008 Jul 18 10:22 PM
Hi rakesh sarma,
when there is a need to use similar data from retrieving select statements used in different situations , you should create a temporary table and store the data retiriving in first select statement.Use this data in the temp. table where you want.it should eliminate the need of writing redundant select statement in the program.
From the performance perspective,
it took unnecessarly more time and memory it required to store the redundant data from redundant select in the program.
it consumes the memory and time resources unnecessarily.
Thank you,
Prasad G.V.K
2008 Jul 21 3:16 PM
Hi,
It's better to use Global search than with what performance tuning option.
ST05 will give u the Performance of the Select but doesn't compare for redundant statements.
2008 Jul 21 11:12 PM
That's not exactly true. ST05 does show identical selects.
After ST05 trace, goto summarize by SQL statements. 2nd column from the left, labeled "identical" shows you the percentage of the statement which is identical.
2008 Jul 23 6:12 AM
> ST05 will give u the Performance of the Select but doesn't compare for redundant statements.
as said already this is not true, it is more important to find identical execution than identical orsimilar looking coding. Only identical executions are redundant, and they can come even from the same statement.
Siegfried
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |