I have on single line query. i alway see this query fired
on my database.this query fetch single column and cpu cost is too high 1637557 and cost is only 26.this query is fired reguarly.
what will be better way to deal with this query.
select code12 from m_s12 where flnt402 =:1 order by code12
this the query that is taking cpu cost is too high 1637557 and cost is 26.
what we can do with this.
what u suggest me to do.
What's the explain plan, how many rows is it retrieving, is flnt402 indexed, is the table index-organized?
Also, why is this code being executed so many times? Is it a case of PL/SQL looking up values then joining to another data set through PL/SQL code instead of through SQL?
How fragmented the table is? What does the explain plan show? What is the optimizer it was trying to make use of in the explain plan? Also is it a simple pk or composit pk?
Bookmarks