Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

RE:Performance wise which is better

Former Member
0 Likes
823

Hi,

Performance wise which one is better for <b>all entries</b> or <b>inner joins</b>.Can you give reasons for that.............

Regards,

Alex.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
797

for all entries is better according to performance wise as database aaccess is less

7 REPLIES 7
Read only

Former Member
0 Likes
798

for all entries is better according to performance wise as database aaccess is less

Read only

Former Member
0 Likes
797

Alex,

For all entries is better than inner joins in performance point of view

<b>Reward points for helpful answers</b>

Satish

Read only

Former Member
0 Likes
797

hi,

for all entries is the best

Read only

0 Likes
797

SAP recommended using inner joins up to only on 3 tables. But performance wise don't use joins go for all entries. if you use joins the comparisons for your condition is takes place in database where as in for all entries it is in application server.

if helpful reward some points.

Read only

Former Member
0 Likes
797

Hi!

INNER JOIN is used if we want to retrieve some data from more than one table.

FOR ALL ENTRIES is used if we want some data from a table based on some conditions of some other table.

Using several nested INNER JOIN statements can be inefficient and cause time out if the tables become too big in the future."

In ABAP, these joins are first split by the ABAP processor and then sent to the database, with the increase in DATA in production system, these joins tend to give way if your database keeps growing larger and larger.

You should rather use "FOR ALL ENTRIES IN" (Tabular conditions), which is a much efficient way as far as performance is concerned.

Check these links:

Regards

Read only

Former Member
0 Likes
797

JOINS are almost always better:

<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