- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2023 08:05 AM - edited 04-13-2023 08:27 AM
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:
Test instance:
Here in 3rd table matching fields are String data type.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2023 09:29 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2023 05:19 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2023 08:07 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2023 08:24 AM
No Luck Bro😥
In both the instances there having same index true.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2023 08:32 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2023 08:43 AM
For sap table no index is set for both the instances.
alm_asset: Test instance
alm_asset: Dev instance: