I am afraid that EXPLAIN PLAN is the only way. Start by assuming a lower cost (if you look at the explanation plan, there should be a column called COST), but you need to read about it so that you learn more and more. Maybe you have a DBA with whom you could communicate? Without your data and queries, itβs difficult to advise further
Regarding the development of Oracle, a good place to start is that Tom Keith (Google it) or search through the Ask Tom website . If you really want to get involved
Running a request multiple times β a pretty bad idea β is tantamount to simply recognizing that the cost of an explanation plan will tell you the best request. You really need to consider what resources your request takes, and therefore how it can affect your production system.
Depending on how often the request is called, it affects how well you need to track the performance of the request (sorry for purists, but it is). If the request is executed only once a week and takes a minute to work without affecting anything, then you need to optimize this request? Is it easier to maintain a query that is easier to follow logically?
If the request is called several times per second, you need to fully understand the explanation plan and get an additional idea of ββhow to optimize the request to maximum performance.
Chris gill
source share