Application Development 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: 

something better than join table

former_member586174
Participant

Hallo Abapers,

I have a programme to call the data from three tables and make segregation in some fields.
this has been developed on the join statement basis.

This program is taking sooooo much time now until we can see the result tabel (if we can). as we are talking here about millions of records !!!!

Do you have some Ideas or other methods that are better and effecter than join tables to achieve this???

Best Regards

Jenie

1 ACCEPTED SOLUTION

roberto_forti
Contributor

Hi Jennifer,

First of all, I suggest you consider analyzing that program issue before changing it.

Following some steps to analyses program performance.

1. SE30 or SAT (Runtime Analysis) transaction

2. ST05 - SQL Trace (Performance Trace) transaction

Attached excellent documentation about SQL Trace

https://wiki.scn.sap.com/wiki/display/SAPSQL/How+to+run+transaction+st05+to+trace+a+program%2C+trans...

Depends on which tables it has retrieved data is dangerous creating/activating database view.

Let us know the results.

Regards

5 REPLIES 5

P14397410
Participant

When you say "millions of records" do you mean in the tables or in the results? If the SELECT statement is fetching millions of rows, it will certainly take a lot of time no matter which method you use.

A join itself cannot be bad for performance regardless of how many rows exist in joined tables, provided the join conditions are used correctly and the WHERE clause is using the correct indexes.

If it is not against your company policies, post the entire SELECT statement here and someone can offer some help.

roberto_forti
Contributor

Hi Jennifer,

First of all, I suggest you consider analyzing that program issue before changing it.

Following some steps to analyses program performance.

1. SE30 or SAT (Runtime Analysis) transaction

2. ST05 - SQL Trace (Performance Trace) transaction

Attached excellent documentation about SQL Trace

https://wiki.scn.sap.com/wiki/display/SAPSQL/How+to+run+transaction+st05+to+trace+a+program%2C+trans...

Depends on which tables it has retrieved data is dangerous creating/activating database view.

Let us know the results.

Regards

ChrisSolomon
Active Contributor
0 Kudos

You mean a "view" (ie vision?) ?

kiran_k8
Active Contributor
0 Kudos

Jennifer,

If you post the code, you will be able to get more accurate replies.

You can explore, OPEN CURSOR/FETCH CURSOR/CLOSE CURSOR.

K.Kiran.

former_member233657
Active Participant
0 Kudos

Hi Jennifer,

on which DB is your system running?

Kind regards,
Martin