-
full table scan
I have query when i run explain plan , i see several full table scan going on.there are indexes on these tables.how to reduce full table scan on these and use some indexes etc?
-
why are you assuming a full table scan is bad
-
Oracle db would decide whether it needs full table scan or use indexes based on certain set parameters.
"What is past is PROLOGUE"
-
.. and based on statistics on the objects etc..
Welll a full-scan is neither good nor bad, it is just a thing. You can promote index usage in a number of ways, and for a single query the simplest may be to just use hints to promote index usage.
However, take the trouble to measure and document performance with and without the indexes being used, and keep an open mind on whether you ought to be using them or not. If you can conclude that there are clear benefits to using the indexes then you can look to see why the optimizer is not doing so. It may have bad information about the tables, the indexes, the data, the system ... but the first step is to see whether it is right or wrong in the first place.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|