Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesOracle Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 4th, 2004, 10:37 AM
AVS AVS is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 37 AVS User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 4 m 52 sec
Reputation Power: 5
Index on view?

Oracle 8x
I have read only access to some views and not to corresponding tables. I have some queries like
select a from view1 where c = 'xyz' and d in ('abc','def');
This is taking lot of time. I feel if there are indexes on fields 'c' and 'd' on corresponding table it would be faster. Is this right? If we create index on tables and we access views would it be faster? Or can we create index on views also? Any tips to improve performance

Reply With Quote
  #2  
Old November 5th, 2004, 09:07 AM
jiggee jiggee is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 27 jiggee User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 m 27 sec
Reputation Power: 0
Try trouble shooting the problem by looking at the explain plan. you could use hints too.. also I would and executing the query with one where clause (ie first with only 'where c = ...' there by making sure which fields you might need to create an index. Indexing should definately help, also home many records are we talking here. if there are not a lot indexing might not make a big difference. As far as creating indexes in views i dont think you could do that, but I am not 100% positive. some googling might help on that one.

Jiggee

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > Index on view?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway