Quote Originally Posted by stecal View Post
Do you have Toad? Run it through a tuning lab.

Why select from the mam_assets table twice for a.id?
1. I don't have toad. Any other way, I can find out where the time is consumed.
2. There is a UI based query wizard at the application level that generates this query. Even I spotted the same thing but I don't have any control on it.
3. I checked the health of indexes involved using 'analyze index validate structure'. They are good.

Any other comments, I would be grateful.