Database view table taking too much time to load

sainath3
Mega Guru

Hi Team,

 

I have created a Database view of combing 3 tables.

In Dev instance it is taking 5 sec to load the records but in test instance it is taking more than 5 minutes.

 

Note: In both the instances no.of records are same in those 3 tables, even though.it is taking more time in Test instance.

 

Can you please help me here.

 

Dev instance: 

sainath3_0-1681397350292.png

Test instance:

 

sainath3_2-1681398211865.png

 

Here in 3rd table matching fields are String data type.

 

 

2 ACCEPTED SOLUTIONS

Check for database indexes on the field you are joining on.  Ultimately the fastest way to find out is to log a case with support and ask them to recommend ways to make the view faster.  They have tools to analyze the query and tell you what indexes will speed things up if any.

 

View solution in original post

Thanks Drew, Its working now.

As you said I have gone through videos on Database indexes, and I configured in the instance.

Now the table is taking less than 5seconds.

View solution in original post

12 REPLIES 12

DrewW
Mega Sage
Mega Sage

Make sure there are indexes created for the fields that you are joining on.  If they are not there then create them and see if that helps.

 

No Luck Bro😥

In both the instances there having same index true.

So sap_u_asset has a database index set for it?  That is usually not the case for a text field.  I'm assuming its a text field because asset_asset_tag is a text field and I'm reasonably sure the alm_asset table has a database index for the asset_tag field.

 

For sap table no index is set for both the instances.

 

alm_asset: Test instance

sainath3_0-1681400521100.png

alm_asset: Dev instance:

sainath3_1-1681400566032.png