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 IamaSherpa 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
Mar 20, 2002
3,441
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

 
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