Can we put INDEXES on Views if not Is there any way to make it Index bas

Hi
I am running a query in which there are several views involved in the join condition Can we put INDEXES on Views in ORACLE 9i if not Is there any way to make it Index based views beacuse the result that i am getting is very slow and is eating like 10gb of the temp tablespace.
Thanks

No, you cannot put indexes on a view. Think about what a view is, a stored sql statement. Oracle has no way of knowing what rows are in a view until it actually runs the view. So, even if you could, Oracle would need to run the view to get the rows, build the index, then run your query a second time using the index. Seems counter productive to me. A view can use indexes on the underlying tables if appropriate.
Generally speaking, I would say that a query that makes use of multiple views is probably really inefficient. Often, you are only looking for one or two columns from a view which may require joining several tables whose columns are of no use in the main query. I would start by re-writing the query using the base tables, and only using those tables that are actually required to answer the question.
TTFN
John

Similar Messages

Maybe you are looking for

  • Countries of the World for BlackBerry 10

    App Name: Countries of the World  This App has achieved the Built for BlackBerry™ designation. This means that it has been through a rigorous approval process at BlackBerry and will deliver a quality BlackBerry® 10 experience. Summary: First time dev

  • Htc 8x

    hi , i have 2 problem after updating my htc 8x Windows Phone to version 8.10.14219.341 battery usage is very high and when i plug my phone to a charger battery saver program shows 100%  and battery fully charged and LED Light is Green , and after unp

  • Missing startup volume

    Hello out there, I'm working with an old PowerMac 7100/66 AV with G3 upgrade. I exchanged the internal CD-ROM against a newer one (this is supportet by Apple) and replaced the battery. And now the PM wouldn't startup any more, showing the nice flashi

  • Load balancing and High Availability topology

    Our Forms 6i client-server application currently runs on Citrix farm of 20 Windows 2000 boxes (IBM Blade Servers 2 CPU and 2 Gig Memory). Application supports 2000 users. We are moving to AS 10g r2, forms 10g and the goal is to use same hardware, 20

  • Onetime vendor bank account details

    Hi, When entering Name and Address details for a onetime vendor, the Bank Key and Bank Account fields can also be entered. Our auditors are in a flap that anybody who has access to create invoices using a onetime vendor, can enter in bank details (po