Indexes in a view(how does it work?)

I have a view that makes a union query between too similar tables,
selecting equal fields in both, and the field I use in the where clause are the same in both too.
That's somenthing like this:
CREATE OR REPLACE VIEW TABLE_1 AS
SELECT T1.DESC_DATA
T1.TOTAL_DATA
FROM TABLE_1 T1
WHERE T1.COD = &COD_PARAMETER
UNION
SELECT T2.DESC_DATA
T2.TOTAL_DATA
FROM TABLE_2 T2
WHERE T2.COD = &COD_PARAMETER
The first table(TABLE_1) has to many rows, around 10 millon registers, so it has index for the field cod,
but the TABLE_2 has few registers, like 1000, and has no index created.
But when I run a query using the view TABLE_1 it goes to slowly, not using the index.
How do I have to proceed in this case?
Do I have to create index for the same index in TABLE_2?
TABLE_2 not having any indexes makes the view not use indexes?
Or is something else?
The version that I'm using is Oracle 9.2.0.4.0.

We need more information like the explain plan.. Please look at this link about when the query is slow.
When your query takes too long ...
Thanks

Similar Messages

  • How come the current view button does not work?

    How come the current view button does not work?

    Sorry, I have no idea what you are asking; please provide some details, and/or a screenshot if possible: https://forums.adobe.com/thread/1070933

  • What is efax and how does it work?

    Hi!
    eFax® is a service provided by eFax®, not Hewlett-Packard, that allows you to send and receive faxes using the Internet rather than a phone line. eFax® is easy to use, but it is different than a typical phone-based fax machine. You don't require a phone line to use it, so you don't have to worry about busy signals and you can place your printer where you want it, not where the phone jacks are located! The fax number you are provided will not typically be a local number, and may even be in a different country. You will receive 20 incoming and 20 outgoing fax pages per month for free with this service. Your page counts will reset at midnight Pacific Time on the first of each month. You can also subscribe to eFax® Plus to obtain additional pages per month by visiting: http://www.eFax.com/products/internet-fax.
    How does it work?
    eFax® uses the printer Internet connection to send and receive faxes. When you send a fax, it is sent over the Internet to the eFax® server and then eFax® sends your fax to the recipient's fax machine over a standard phone line.
    Your faxes are received in a similar manner, but the order is reversed. The sender sends the fax over a phone line to eFax® and then eFax® sends the fax to your printer using HP's ePrint service.
    This question was solved.
    View Solution.

    Hi Im_cheesecake,
    Great information, if you don't mind I just wanted to piggy back off of your post, to clear any potential confusion.
    The 20 free incoming & 20 free outgoing faxes are with HP printer's that include the eFax service print app.  As of now, we have three printer series' that include the pre-installed eFax print app: HP Photosmart 7510 Series, HP Envy 110 Series, and the HP Photosmart eStation C510a.  
    eFax also has a free plan which allows you to receive a limited number of faxes but does not allow you to send any faxes. If you exceed the number of received faxes allowed, eFax will prompt you to upgrade to a paying account. Here are the main details of the free plan:
    One remote (i.e. non-local) eFax number
    Area code/prefix is selected by eFax and cannot be changed (unless you upgrade to a paid account)
    20 incoming fax pages per month (receive-only)
    You are prompted to upgrade to a paying account if you exceed 20 incoming pages, or if you need send capability.
    Say "Thanks" by clicking the blue Kudos Star in the post that helped you.
    Please mark the post that solves your problem as "Accepted Solution"; therefore, it's easier for others to find.
    I am an HP employee.

  • ORACLETEXTSEARCH - How Does it work?

    Hi experts,
    I had a many disccusions with my coleagues about ORACLETEXTSEARCH in the UCM11g. We found that we don't undestrand How does it work.
    I have a basic questions:
    1. Does ORACLETEXTSEARCH use only database engine for the indexing?
    2. Can I start fulltext indexing without Oracle UCM? Only by database.
    3. Are some differences between UCM10g and 11g?
    Thank you for the answers and the explanation.
    Martin

    1. Oracle text is a DB tool installed at the DB level, however as others say the triggers to kick it off are done by UCM not independently at the DB. I do not think it could work that way.
    2. No, but other indexing options are available like SES
    3. 10g required a component to be added to the UCM server and required an 11.1.0.7.0 or greater oracle DB. 11g requires no extra component but still has the db requirement.
    SES can be configured to index multiple different repositories (including UCM) and you can control the index rebuilds directly from SES as an option for number 2.

  • How does tagging work?

    I see there is a show by tags feature in the ios app. How does tagging work?

    On the N96, fire up the camera, then:
    Options > Settings > Record location > On
    You can't see the position on Google maps but you can on Nokia Maps. When viewing a location-tagged image in the gallery view application, simply do Options > Show on map.
    Was this post helpful? If so, please click on the white "Kudos!" star below. Thank you!

  • The count on "Top Kudoed Authors" seems wildly inaccurate; how does that work?

    Not a biggie, but I see on the main page, and on each sub-page, a block called "top kudoed authors".  The counts and top authors vary between pages, but it is always (seemingly) wrong.  Some "top authors" have only 1 Kudos.  Top "kudo" heavyweights appear like Cicopo, but with only a tiny fraction of their actual scores.  What does this mean/ how does this work?  
    Scott
    Canon 6D, Canon T3i, EF 70-200mm L f/2.8 IS mk2; EF 24-105 f/4 L; EF-S 17-55mm f/2.8 IS; EF 85mm f/1.8; Sigma 35mm f/1.4 "Art"; EF 1.4x extender mk. 3; 3x Phottix Mitros+ speedlites
    Why do so many people say "fer-tographer"? Do they take "fertographs"?

    Hi ScottyP, thanks for posting!   We're sorry for the confusion; we think you might be seeing the "Week" view for kudos.  If you click on the "View All" option right below the leaderboard, you can sort viewable options by several different parameters, including "All Time".  This All Time view should give you a more accurate tally of a user's overall kudos.  We hope this helps!
    Jessica in Support

  • How does it work it on apple iphone

    how does it work it on apple iphone

    Service Answer Center - iPhone - http://support.apple.com/kb/index?page=servicefaq&geo=US&product=iphone  <-- enter correct country in drag-down menu once on page.

  • Iphone fell down and there is a very big dent on the left side. the screen split on both side. can i send it to apple and the repair it for like 160€ or how does it work?

    hi my iphone fell down and there is a very big dent on the left side. the screen split on both side. can i send it to apple and the repair/change it for like 160€ or how does it work?

    Service Answer Center - iPhone - http://support.apple.com/kb/index?page=servicefaq&geo=US&product=iphone  <-- enter correct country in drag-down menu once on page.

  • How does this work?

    This is not a complaint, but a confused sigh of admiration. I've got an email account at the university where I teach. When I got my iBook, it took me a while, and a few conversations with IT at the school, to get this account working in the Mail application. (Since I have a Verizon DSL at home, I had to include that SMTP as the outgoing server.) Anyway, I synched this mail account (along with my AOL and .Mac accounts) onto the iPhone, and it works perfectly, both incoming and outgoing. I didn't have to change any of the settings. I thought I was computer savvy, but I can't wrap my mind around this. It seems like magic. How does it work?

    The sync process with iTunes transfers the email account settings (for your chosen accounts via your iPhone sync preferences) from the Mail application on your Mac to the iPhone's email application.
    The iPhone is running OS X and the iPhone's email client can be considered a mobile version of the Mail application.

  • My iPhone was stolen and I have contacted the police who are using the meid number to locate.  How does this work and what are my chances of getting the phone back?

    My iPhone was stolen.  I used Find My iPhone app to lock it and display a message.  The phone has not connected to the internet to locate it.  I contacted the police and they have taken my meid number.  How does this work and what are my chances of getting the phone back?  Are there other ways the theif can use it.  I was told once they put in a new sim card and use it, whatever software the police have, it will show up.

    Honestly? In the US (I can't speak to other countries, though I doubt it works much differently in a lot of the world) The police took your report and filed it either in their computers or, on paper. They will now not think of this again. The only time it will cross anyones mind is if, in the course of entering information into evidence about items recovered or seized at a crime scene, the serial number of an iPhone that was found/seized happens to match yours, in which case you will be contacted.
    The police in the US can and will do nothing to 'blok' the phone and it's not worth their time to try and locate it unless you know for a fact that it was stolen by a big time drug lord, master criminal, or some other such prime target and they can get a court order to track the location of the phone in order to locate this individual for your own purposes.  If they do that, they'll probably keep him under surveilance for a year or so before they act.
    Basically, the police don't care about your phone. If they find it, they will give it back to you. They are not, however, going to go looking for it. They have better things to do.
    I'm sorry, but that's the way it is.

  • Was told a USB device would create a PDF automatically from the data contained within when plugged into my USB port. Doesn't seem to work. How does this work and how can I fix the device I received?

    Acrobat is not on the USB device - only Adobe Reader needed on the PC. How does this work? How can I fix this device if at all?

    You need to ask the people who sold it to you. Doesn't sound like it has anything to do with Reader.
    However, you should be wary of devices that automatically try to open files when plugged in. They can also infect your computers with all kinds of viruses or malware.

  • HT2357 So how does this work on Mountain Lion? I cannot seem to ignore the iTunes 11 updates, which now seem to appear every 5 minutes!!

    So how does this work on Mountain Lion? I cannot seem to ignore the iTunes 11 updates, which now seem to appear every 5 minutes!!

    Fantastic!  Didn't work at first so restarted App store and tried again.  This time it asked 'ignore update'.  All gone!

  • TS1425 My co worker has given me his iPod to take home and transfer his music to my laptop, however, I am unable to access his music to download it to my computer.  How does this work?

    My co-worker has given me his iPod to take home and transfer his music to my laptop, however, I am unable to access his music to download it to my computer.  How does this work?

    You need to transfer the iTunes Library from the most recent backup you made before the hard drive was replaced.
    You can't transfer the full iTunes Library from the iPad back to iTunes.
    There are third-party Windows applications that will transfer data from an iOS device, but they don't re-create the iTunes Library exactly as it was before.

  • How does Remote work with Apple TV?

    How does Remote work with Apple TV?
    1. Does Remote, "Play" the music that resides on your iPod Touch>Apple TV>Home Speakers.
    OR
    Does Remote "Control" the music that resides on Apple TV HD>Home Speakers.
    (If so... say you have a iPod Touch that only holds 8GB's but your music collection on your Apple TV exceeds that amount.
    Will Remote still "Control" the larger music collection on Apple TV or your computer?)
    2. Will iPod Wifi work on a patio outside a home to control Apple TV inside the home?
    thank you in advance, Tom

    Remote is a way to control iTunes on either your computer or Apple TV using a WiFi connection. See this article for complete instructions.

  • I got a itunes gift card and when i try and buy some thing it asks me for my credit card details how does that work when i have £15 on my fone that i got on a gift card?

    i got a itunes gift card and when i try and buy some thing it asks me for my credit card details how does that work when i have £15 on my fone that i got on a gift card? as i am trying to buy a song and it is starting to really cheese me of now where it keeps asking for credit card details is there a way round it with out having to use a credit card?

    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

Maybe you are looking for

  • VS2013 and Crystal Report Layout printing

    <p>Hi,</p><p></p><p>I use VS2013 and Crystal reports.  In my program i also use direct print from the form (not by crystal reports).</p><p></p><p>When I first print a documten from a form, and then I take a printpreview from a crystal report, the lay

  • Fails to activate Office Professional Plus 2013 Trial

    Hello Yesterday I downloaded from Microsoft evaluation center the Microsoft Office Professional Plus 2013 Trial. The installation completed successfully but when I am trying to activate Office using the email address that I use to download the applic

  • Safe mode at startup

    Issue safe mode at startup bar if mouse and keyboard bluetooth are off, bat if connected after going all to be ok.

  • Misspelled Artist Names Create Multiple Artists from One

    What to do if Spotify has misspelled an artist's name and created two artist of one. I have seen many exemples. The Last one is Garnett Silk (right) and Garnet Silk (wrong, it shall be 2 tt). The result is that Spotify has one list with Garnett and a

  • Processing WS-Security headers within a web service

    Hello, I have created a service with WS-Security (from a WSDL using jdeveloper) and deployed it on OC4J. Within the service implementation, I need to get some information from soap security header, that is, my service needs to process some security h