Do not adjust despite the advice of the index

Its Oracle 10g Release 10.2.0.4.0 
Hi all

I have this query in which there are indexes on the instrument table like this:
Instrument:
idx 1 : (INSTRUMENT_ID, END_COB_DATE, CLOSE_ACTION_ID, PRODUCT_SUB_TYPE_ID, BEGIN_COB_DATE)
idx 2 : ( INSTRUMENT_ID, INSTRUMENT_VN, END_COB_DATE, CLOSE_ACTION_ID)
idx 3 : (CLOSE_ACTION_ID, END_COB_DATE)
I tried all possible ways, but none of the indices are used to causing complete this table table scans. I need advice on how can I avoid this FTS, so the query can run fast and use the index on the table of the Instrument:

query:
select distinct i.instrument_id,
                i.name,
                case
                  when (mn2.display_name != 'DEBT PRIORITY CLASS' and
                       mn2.display_name is not null) then
                   mn2.display_name
                  else
                   mn1.display_name
                end "DEBT_PRIORITY_CLASS"
  from instrument i, inst_debt id
  left join marsnode mn1 on (id.debt_priority_class_id = mn1.node_id and
                            mn1.close_date is null and
                            mn1.type_id = 58412926883279)
  left join marsnodelink mnl1 on (mn1.node_id = mnl1.node_id and
                                 mnl1.close_date is null and
                                 mnl1.begin_cob_date <=
                                 TO_DATE('27-Oct-2010', 'DD-Mon-YYYY') and
                                 mnl1.end_cob_date >
                                 TO_DATE('27-Oct-2010', 'DD-Mon-YYYY'))
  left join marsnode mn2 on (mnl1.parent_id = mn2.node_id and
                            mn2.close_date is null and
                            mn2.type_id = 58412926883279)
 where i.instrument_id = id.instrument_id
   and i.instrument_vn = id.instrument_vn
   AND i.end_cob_date > TO_DATE('27-Oct-2010', 'DD-Mon-YYYY')
   AND i.close_action_id is null
   AND i.product_sub_type_id = 3
   AND i.begin_cob_date <= TO_DATE('27-Oct-2010', 'DD-Mon-YYYY')
It is the execution plan
--------------------------------------------------------------------------------------------------
| Id  | Operation                       | Name              | Rows  | Bytes |TempSpc| Cost (%CPU)|
--------------------------------------------------------------------------------------------------
|   0 | SELECT STATEMENT                |                   |  2026K|   407M|       |   509K (20)|
|   1 |  HASH UNIQUE                    |                   |  2026K|   407M|   879M|   509K (20)|
|*  2 |   HASH JOIN RIGHT OUTER         |                   |  2026K|   407M|       |   426K (23)|
|*  3 |    TABLE ACCESS BY INDEX ROWID  | MARSNODE          |   501 | 23046 |       |   239   (3)|
|*  4 |     INDEX RANGE SCAN            | FKI_38576_TYPE_ID | 10159 |       |       |    34   (6)|
|*  5 |    HASH JOIN RIGHT OUTER        |                   |  2026K|   318M|       |   425K (23)|
|*  6 |     TABLE ACCESS FULL           | MARSNODELINK      |   330 | 15510 |       |  6560  (16)|
|*  7 |     HASH JOIN RIGHT OUTER       |                   |  2026K|   228M|       |   419K (23)|
|*  8 |      TABLE ACCESS BY INDEX ROWID| MARSNODE          |   501 | 23046 |       |   239   (3)|
|*  9 |       INDEX RANGE SCAN          | FKI_38576_TYPE_ID | 10159 |       |       |    34   (6)|
|* 10 |      HASH JOIN                  |                   |  2026K|   139M|    34M|   418K (23)|
|  11 |       TABLE ACCESS FULL         | INST_DEBT         |  1031K|    22M|       |  1665  (30)|
*|* 12 |       TABLE ACCESS FULL         | INSTRUMENT        |  2062K|    96M|       |   413K (23)|*
--------------------------------------------------------------------------------------------------
predicate info
 2 - access("MNL1"."PARENT_ID"="MN2"."NODE_ID"(+))
 3 - filter("MN2"."CLOSE_DATE"(+) IS NULL)
 4 - access("MN2"."TYPE_ID"(+)=58412926883279)
 5 - access("MN1"."NODE_ID"="MNL1"."NODE_ID"(+))
 6 - filter("MNL1"."CLOSE_DATE"(+) IS NULL AND "MNL1"."END_COB_DATE"(+)>TO_DATE('
            2010-10-27 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND "MNL1"."BEGIN_COB_DATE"(+)<=TO_DATE('
            2010-10-27 00:00:00', 'syyyy-mm-dd hh24:mi:ss'))
 7 - access("ID"."DEBT_PRIORITY_CLASS_ID"="MN1"."NODE_ID"(+))
 8 - filter("MN1"."CLOSE_DATE"(+) IS NULL)
 9 - access("MN1"."TYPE_ID"(+)=58412926883279)
10 - access("I"."INSTRUMENT_ID"="ID"."INSTRUMENT_ID" AND
            "I"."INSTRUMENT_VN"="ID"."INSTRUMENT_VN")
12 - filter("I"."PRODUCT_SUB_TYPE_ID"=3 AND "I"."CLOSE_ACTION_ID" IS NULL AND
            "I"."END_COB_DATE">TO_DATE(' 2010-10-27 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND
            "I"."BEGIN_COB_DATE"<=TO_DATE(' 2010-10-27 00:00:00', 'syyyy-mm-dd hh24:mi:ss'))
Kind regards
Aashish

Aashish S. wrote:

I tried all the possible ways but none of the indexes are getting used causing full table scans of this table. I need some guidance on how can I avoid this FTS so the query can run fast and use the index on Instrument table:

I guess that the last part of the statement above is what you really need reach (i.e. improve the execution time of the query) and the query not using index is what you think as the 'cause' for the real "problem". I will try to answer the real 'problem '. Based on what you've posted, some comments/suggestions
(1) your plan shows that the query should recover 2026 K lines. Are you sure you want to recover as many files? You can come back here on the "requirement".
(2) continuous superior point-to-point, you can view the details of how long takes the query to run to the present and how long do you expect to take. Another of the most important details will be how will you measure the runtime of the query. With this large number of records, it is quite possible that more time is spent by simply transferring the results of the query to the 'client' that the actual time taken by server to run the query.
(3) if what you posted is the order of the columns in the index on the table with INSTRUMENTS, then what evidence do will help you to run the query and how? The order of the columns indicate that none of the clues will be good enough and that seems to be the right choice.
(4) your section descriptor States that filter the predicate on table to INSTRUMENTS generates 2062 K lines. The number of records exist in the table of the INSTRUMENT? You will need to have a record much more (not to mention other factors like the order of data in the table etc.) in the table to justify the indexed access to pick up these huge number of lines.
(5) Finally, you can check if the tables and indexes used by the query statistics are up to date.

I hope this helps.

Tags: Database

Similar Questions

  • IPhoto on the external hard drive will not launch despite the force quit and relaunch several times. Can someone help me?

    I have a MacBook from 2008. 4 years ago I moved my iPhoto on an external hard drive. I have thousands if photos on it. IPhoto on the external hard drive will not launch despite the force quit and relaunch several times. Can someone help me?

    < re-titled by host >

    I moved my iPhoto on an external hard drive.

    Did you move the iPhoto library for the external hard drive or the iPhoto application, or both?

    How is formatted the external hard drive? Is the file system on the drive Mac OS extended (journaled) or other system files?  Is the drive directly connected by USB or similar, or is it a SIN?

    IPhoto on the external hard drive will not launch despite the force quit and relaunch several times.

    I don't understand - if you force quit smoking, launches the application, or you can not force it quit?

    IPhoto is suspended without doing anything, when you launch?

    What version of iPhoto does? And what version of Mac OS X?

  • Packer of creative cloud in creating a package that I can install do not.  He goes through the motions, download all updates, create setup file, but it does not work despite the fact that there are no errors in the log files

    Packer of creative cloud in creating a package that I can install do not.  He goes through the motions, download all updates, create setup file, but it does not work despite the fact that there are no errors in the log files

    After hitting my head against the desk to repeatedly create packages, try on different computers I have finally found a solution.

    These packages have been copied on an external drive, if I try and install from the external drive, which is a common practice, it fails.

    If I then copy this file pkg from the outside, to the computer I install, then run it, it will to and moved very well.

    That is mind-boggling stupid, because it's rare that you have to copy the file into any computer, it is less always installed off the coast of externally, and many people in the company are pushing on the network and the management of the suites so there is a serious problem in Adobe package manager if this is the case where it cannot manage the Middle installed offshore.

    I hope that if anyone else is having problems so it suits.

  • "The document is not valid. The index.xml file is missing.

    I suddenly can't open one of my docs of numbers. I get a msg "'name of the doc' document is not valid. The index.xml file is missing.  I literally had the open document this morning without problem, closed, tried to reopen and now I get this msg... all in the same session of the computer. It began not after an update or anything like that, right in the middle of a session of the computer.  You seem to affect all the docs of numbers.  I can't open an any of them now.  I am running OS X El Capitan Version 10.11 and numbers 09, Version 2.1.

    Hi jg,.

    The case usual this message, it is that the document has been opened in numbers version 3.xx, which converts it into a new file version that uses the file index.xml internal requested by Numbers ' 09.

    You have 3 numbers installed on your machine? This file has already been opened in this application?

    The file was saved to iCloud or opened by the iOS version numbers or numbers for iCloud?

    Recommended 'cure' is to open the file using the 3 numbers, then save as... or export to format Numbers ' 09. As a result, remember numbers to quit smoking (v3) - menu numbers > numbers to quit smoking; by clicking on the red light closed the file, but doesn't end numbers. So avoid open numbers files by double-clicking on the file itself.

    Instead, start Numbers ' 09 (v2.3) and open the file in the application.

    Kind regards

    Barry

  • Description Metatag does not show in the index file after the publication

    Although I was able to add the Google Analytics code in the HTML < head > in the field of properties mater as shown below, when I add the metatag info, it does not appear in the index file. Basically, I inserted the metadata in the main template.

    Screen Shot 2016-05-01 at 5.09.55 PM.png

    The index file in the ftp file server looks is shown below:

    Screen Shot 2016-05-01 at 5.11.32 PM.png

    The meta tag is missing the closing.

    It is not advisable in terms SEO to have the same description across all pages of the site. See the link below.

    Description of the Meta Tag - learn SEO - Moz

    David

    Creative muse

  • definition not adjusted with the class extending LinkButton?

    I have a class that I made and which stretches from LinkButton so that you can put HTMLText as a label.

    It works but the background/highlist watch is too much because the unscalled with as though it is ordinary text not set htmlText, but I can't replace/set the width not adjusted because it is private.

    Anyone have any ideas?

    Here is my class:

    package com.kranichs.components

    {

    import mx.controls.LinkButton;

    /public class HTMLLinkButton extends LinkButton

    {

    protected var _isHTML:Boolean;

    public void HTMLLinkButton()

    {

    super();

    }

    [Bindable]

    public public function set isHTML(value:Boolean):void

    {

    _isHTML = value;

    }

    public function get isHTML (): Boolean

    {

    return _isHTML;

    }

    override protected function updateDisplayList (unscaledWidth:Number,

    unscaledHeight:Number): void

    {

    super.updateDisplayList (unscaledWidth, unscaledHeight);

    if (_isHTML)

    {

    textField.htmlText = label;

    }

    }

    }

    }

    Parents size children by explicitWidth/height or measuredWidth/height.  You probably need to replace Measure]

    You generally don't want to set the properties in updateDisplayList that could invalidate the measure so probably you need to apply the label in place of commitProperties().

    Alex Harui

    Flex SDK Developer

    Adobe Systems Inc..

    Blog: http://blogs.adobe.com/aharui

  • Mouse not disappear despite the timing

    Hi, I made a simulation of nickname in Captivate 8 by adding a mouse to an image and clicking make pretend.

    However, despite the schedule of my mouse only lasts a few seconds (see image), there's actually on the screen for the rest of the blade!

    I did a work around by duplicating my background image and place then on the mouse when I continue, but that seems just ridiculous to have to do.

    If the mouse is supposed to be there for 2 seconds, why is it stick around? All this experience?

    Thank you!

    6-10-2015 3-32-24 PM.png

    The mouse is usually something or turn off. If it is enabled, it is visible. The object in the timeline governs only the speed of movement. Short-lived means that it moves more quickly, while a longer period means that it slows down.

    See you soon... Rick

  • Performance the use of a 'Like' filter * is not due to the index right question *.

    Hello
    We have just published an Oracle APEX application for users and encountered a performance problem in the production version that wasn't developing. The interactive report contradicts a simple view that returns data similar to:

    NAME VALUE MIN MAX
    1 1 3 BEL123
    3 3 4 BEL245
    2 1 3 AB222


    The problem is that when you use a filter on the column name with a similar operand (name LIKE "% NICE"). Performance of the queries are very poor (average is 29 seconds to return based on the statistics of the APEX). Are huge paintings, but the performance development is fast (almost instantly). Here are the things I looked in to try to identify the problem:

    (1) I tried to run the same exact query in SQL * more performance is fast in production and development, so it's not the index.
    (2) creating any new reports from zero causes the same results in production and development. So its not anything specific that has been changed in both versions (which are identical)
    (3) put the NAME Like "% NICE" directly in the clause the report SQL product quick returns in production, so the problem is not the user of APEX not seeing the index for some reason any. It also ensures that differences in data in two databases are not the cause of this.

    So my only theory that is somehow using similar filter does not allow the index on the column NAME to be used, but only in the production. Any ideas... I am at a loss.

    Published by: user491396 on January 7, 2009 14:18

    I think that if you run the same exact query that generates the APEX, it wouldn't matter if you ran the query of the APEX or SqlPlus. He would still use the same execution plan.
    It seems to me that the optimizer for some reason any do not push predicates in the view which might then a more optimal plan. You could try the 'PUSH_PREDICATE' or 'FIRST_ROWS' advice in the report query and check the generated execution plans to see if they change.

    CITY

  • Any ideas why weather script will not appear in the index created with DW

    For an example of what I want to do with DW, please see my page now created with CoffeeCup. It will cost $49.

    http://96.9.48.31/

    This did not require a moment of my time asking them for help. It is not perfect and there are a lot of code that could be cut out, but it gives me results. I need assistance in support of DW to do what I know, the software can do, but maybe not easy at the beginning.

    Why the weather script does not play when the page is created with DW, but when created with Publisher and cup of coffee?

    Any help would be greatly appreciated.

    I want to use Dreamweaver, really I do. I have a whole database downloaded with the software of connection Member, just waiting for me to install. I don't install it until I first get a handle on a bug of ugly time.

    atmydeskworking wrote:

    Why the weather script does not play when the page is created with DW, but when created with Publisher and cup of coffee?

    The reason that the weather-report is not working in the Dreamweaver version of the page is that you have a gap between the words 'white' and '&' in the link below. Delete the gap and it will work.
    
    http://weatherreports.com/jscript.html?width=234&height=60&theme=white &location=Fairfax%2C%20Minnesota%2055332&units=f"
    
  • Firefox will not charge despite all advice on the support Web site

    I loaded a Freemaker Video Converter was updated and now I can't open Firefox. I tried to reinstall (copied my profile on the desktop), unfortunately the system restore has an error, I tried reloading an old version of Firefox is approved in the firewall, tried to open the Profile Manager and it gives the error message "I'm sorry" (sent your comments). I tried to change the registry, but only removed the obvious entries. When I click on Firefox Windows think well (circle with the mouse), then nothing, starts a process. I have gone through all the documentation support and have run out of options.
    Any thoughts?

    Sometimes a problem with Firefox can be a result of malware installed on your computer, you may not be aware of.

    You can try these free programs to search for malicious software that work with your existing anti-virus software:

    Microsoft Security Essentials is a good permanent antivirus for Windows 7/Vista/XP, if you do not already have one.

    More information can be found in the article troubleshooting Firefox problems caused by malware .

    This solve your problems? Please report to us!

  • System Restore does not work despite the train different restore points

    Despite all the restoration in train points highlighted that it will not restore only get the same attempt to message one another restore point

    Garry

    AVG does not normally interfere with the restoration of the system.

    Is set up to create computer system restore points?
    http://bertk.MVPs.org/html/missingrps.html

    Why can't you just uninstall programs you put on the computer? I assume you mean programs when you refer to "stuff"?

    What is your computer brand and model? You have a Windows XP CD? What is a Home Edition or professional?

  • 'Crowd LR' does not work despite the good configuration

    It's all in the subject, apparently, I have everything configured correctly, despite this, I still can't use 'crowd LR.

    translated "google translate", my preferred language is French!

    Duplicate thread: 'mobile LightRoom' to not synchronize?

  • Printer does not print despite the installation apparently OK

    I have a HP Deskjet F380 all-in-One.  I know it's old, but that's all I can afford.  I am running Vista Home Basic.  Again, I know it is old but... Long ago he began to resettle whenever I used it.  This problem has been fixed and he started that recently still do.  Until copy 11.

    I tried to reinstall the driver and that seemed fine, but now the printer does not work.  He made all the right th 'noises', but nothing happens.

    I'm REALLY desperate.  Even though I know that printers are also good markets that... these days, my budget running on fumes abd replacement is not a viable option at this time.

    REALLY hope someone can help.  Thank you very much.

    Hello

    Try to install the following hotfix, restart your PC and check differences:

    http://h10025.www1.HP.com/ewfrf/wc/softwareDownloadIndex?softwareitem=MP-69585-1&cc=us&DLC=en&LC=en&OS=2093&product=1128296&sw_lang=

    If that doesn't help try to install this patch as well:

    http://h10025.www1.HP.com/ewfrf/wc/softwareDownloadIndex?softwareitem=OJ-69124-1&cc=us&DLC=en&LC=en&OS=2093&product=1128296&sw_lang=

    However, ensure that the harware is unctioning by creating a copy of the device itself, if it works and all the fixes above does not help, try replacing the cable USB... so make sure that it is not longer than 2 meters long and directly connected to your PC (and not by extensions or hub USB.)

    Kind regards

    Shlomi

  • Product key Windows 7 Pro is not selected despite the genunity declared by Microsoft.

    My key purchased having declared authentic in several times by Microsoft. But why the same is not used for activation after formatting? Please extend assistance for immediate activation.

    If you have not yet done so, try to activate again.

    Activate Windows 7 on this computer

    http://Windows.Microsoft.com/en-us/Windows7/activate-Windows-7-on-this-computer

    Case of failure of the online activation:

    Call Microsoft use the manual phone Activation

    Note: If you always install Windows page enter your product key, do not enter your key and uncheck the "Automatically activate when online" then click OK/next to complete the installation.

    If you have trouble activating Windows 7 you can call Microsoft to activate it by following the steps below.

    1. with the operation of Windows, click Start, then in the search box type: slui.exe 4

    2. press enter on your keyboard

    3. Select your country.

    4. Select the telephone activation option, dial the given number and hold for a person pick up.

    For more details:

    http://www.SevenForums.com/tutorials/18715-activate-Windows-7-phone.html

    If you are still unable to activate:

    (1) download and run the Microsoft Genuine Diagnostics tool:

    http://go.Microsoft.com/fwlink/?LinkId=52012

    (2) then copy and paste your results for inspection.

    Questions about installing Windows 7?
    FAQ - Frequently Asked Questions from Installation Windows 7 & responses

  • Boundary of shape do not adjust to the content

    Hello

    I'll have repeated trouble with the forms of muse adobe bounding box does not setting when you move materials re-form. In other words, the bounding box extends far ahead of domestic content (screenshot attached of one where the limit of the dotted line extends to the right and down below the content.)

    Normally, this wouldn't be a huge problem, but it creates problems on the mobile site.

    Any help much appreciated.Screen Shot 2014-10-17 at 9.22.27 am.png

    Hello

    This King of problem occurs if something is placed outside the browser area. Please make the suite of controls:

    1. go to available phone in Muse.

    2. Please make sure nothing of the object exceeds the layout area.

    3. also use select all to select all the objects on the page and make sure there in no text box outside the layout area.

    4. also make the same checks with the master page, in which case the affected page is associated with a master page.

    Please look at the screenshot for more details.

    Please let me know if you still need help with this.

    Concerning

    Vivek

Maybe you are looking for

  • I have several blue screens

    original title: I got nearly every BSOD on my old Sony RT2SY allinone desktop of 1 year.   Not a day goes by without multiple failures on my Sony, which is running Vista Ultimate 64-bit. It has been ongoing for over a year and I'm desperate to find t

  • CD burning with Windows Media Player for Vista - WMP shows all blank CDs are full, when I switch to the option of engraving

    When I insert a blank CD and use Windows Media Player to burn the CD, the status of the CD on the right side indicates the CD is full.  When I check the CD in MY COMPUTER, it shows that the CD is empty.

  • Recycle Bin help.

    One day my recycle bin just dissappeared. I need to empty because my computer is slow and its not where to find them. How to restore my old trash? Or do I have to get a whole new?... and how can I do to do this?

  • How to stop effect aperture settings?

    Hello!I have problems with the drop-down menus in the timeline panel. Whenever I have put a new layer, the dropdown "transform" and "audio" menu opens for this layer, and I can't understand how to disable.Any tips?Thnx!H

  • Lightroom has apparently stuck sync 1 mobile photo with Lightroom

    On my desktop application Lightroom CC, there is a message sating that Lightroom is synchronization 1 Photo.  The problem is that he has been displaying this message for weeks.  Stop/restart, the application makes no difference, and when I look at th