Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dispute on index usage with union view

Status
Not open for further replies.

blom0344

Technical User
Joined
Mar 20, 2002
Messages
3,441
Location
NL
Last week I had an interesting dispute with a developer who insisted that the use of a union view would effectively cause the optimizer to skip the use of indices in an execution plan. I no longer have a DB2 instance to test on, so I tried something similar in Oracle 9i.
I cannot really reproduce this. As long as I use conditions that relate to a table column that is indexed execution plans seem to be okay.
Anyone comments?

Ties Blom

 
I can confirm that that is not a problem for oracle 9i.
 
Could you get the developer to Explain a simple query that accesses the union view on a full index key?

Marc

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top