2007 Jun 15 2:34 PM
Hi ,
i have a small questions.
will join conditions in sql queries affect perfomance? how? give with an example
2007 Jun 15 2:40 PM
Hi,
Look at the below link, you will get the correct information
http://blogs.ittoolbox.com/sap/db2/archives/for-all-entries-vs-db2-join-8912
Regards
Sudheer
2007 Jun 15 2:41 PM
hi raju,
<b>join's</b> will affect the performance,
instead of this u can use <b>for all entries</b>.
reward points if helpful,
regards,
seshu.
2007 Jun 15 2:43 PM
Hello,
<b>
Join - Used when the data in the table is less.
For all entries - Used when the data in the table is huge.</b>
So use like this.
Vasanth
2007 Jun 15 2:47 PM
hi,
deffinetly it will affects the perfomace.
<b>it will improves the perfomance when using view insted of using multiple select statements.
When multiple SAP tables are logically joined, it is always advisable to use inner join to read the data from them. This certainly reduces the load on the network.</b>
but we can improve the perfomance by using FOR ALL ENTRIES insted of using VIEWS .
regards,
Ashokreddy.
2007 Jun 15 2:48 PM
check this:
<a href="/people/rob.burbank/blog/2007/03/19/joins-vs-for-all-entries--which-performs-better">JOINS vs. FOR ALL ENTRIES - Which Performs Better?</a>
Rob
2007 Jun 15 3:12 PM
HI
Join will definetly affect ur performance.. Instead of this use For all entries.
Procedure.
Select all fields from one table and put it into one internal table.
then select fields from 2nd table using for all entries and put into another table.
This will reduce ur performance.
Reward me if its useful
Regards
Ravi
2007 Jun 22 11:42 AM
Hi Vasanth,
You may have said the answer. But how will you know when you are writing a report whether it has large or small amount of data while writing a program for implementation Project. We will not all have any data for checking the performance. Ok . tell me something other than this if you know.
2007 Jun 22 2:23 PM
The short answer is that it doesn't matter that much. Either method will give adequate performace. It's <b>far</b> more important to make sure you are using an index properly.
Rob
2011 Jul 21 8:58 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |