Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Cost as used in 'EXPLAIN PLAN'
Hi,
I understand that cost is a relative measure of query efficiency. Can somebody give me a rough idea of scale.
For example, I do an explain plan and get some processes returned as Cost=1 or Cost=1 2. Then some get returned with Cost>5000.
Is Cost>5000 an unreasonably large figure. Those costs are related to a sort that appears to stem from a 'select distinct' What can I do to minimize the cost and still effect the 'select distinct'
-greg