Need help on rewriting query for the DOMAIN CONTEXT index

Hello

I'd be really grateful if someone could give me a tip how to rewrite the query so that the DOMAIN INDEX is executed as the last and not the first... According to the plan to explain it...

What I want: I want to index FIELD CONTAINS search for text ONLY for ITEMS that are extracted from the inner query (table MS_webarticlecache)...

Because it seems now DOMAIN INDEx is executed first on all the MS_ARTICLE table and then filtered by inner query ID's...

This query execution time is now around 86seconds... Inner query has all the indexes for SID_SUBCLIPPING and DATE_ARTICLE... (seen in line 3 of explain plan) If this one is fast and returns the unique id by grouping it and concating keywords...

Without text... search results are retrieved in 3 seconds...

DOMAIN index is created with Oracle 11 g FILTER BY ID, ART_DATE... and is on the MS_ARTICLE table and the ORATEXT seen on the sql column...

Table MS_ARTICLE has 1.8mil lines...
MS_WEBCACHEARTICLE table has cca. 2 lines of millet


SQL:
SELECT A.*, B.KEYWORDS OF
MS_ARTICLE HAS
JOIN THE
(SELECT be, wm_concat (keywords) "KEY words" FROM MS_webarticlecache WHERE SID_SUBCLIPPING IN ('LEK', "KRKA") AND DATE_ARTICLE > = TRUNC(SYSDATE-400) AND DATE_ARTICLE < = TRUNC (SYSDATE) GROUP BY be) B
WE
A.ID = B.ID_ARTICLE AND CONTAINS (A.ORATEXT, 'IMMUNAL', 1) > 0

Here is explain plan:
Plan
SELECT STATEMENT ALL_ROWSCost: 1 K bytes: cardinality K 16: 237
1 FIELD INDEX INDEX (DOMAIN) PRESCLIP. ART_IDX cost: 120
TABLE 2 ACCESS BY INDEX ROWID TABLE PRESCLIP.MS_ARTICLE cost: cardinality K bytes: 5 775: 237
3 INDEX RANGE SCAN INDEX PRESCLIP. WEBCACHE_SUBCLIPDATE cost: cardinality 10: 964
TABLE ACCESS BY INDEX ROWID TABLE PRESCLIP.MS_WEBARTICLECACHE cost 4: 250 octets: 45 K cardinality: 931
5 INLIST ITERATOR
Cost of 6 HASH JOIN: 1 K bytes: cardinality K 16: 237
7 FILTER
GROUP 8 SORT BY cost: 1 K bytes: cardinality K 16: 237


Thank you very much for the help.
Kris

No, dbms_stats.gather_index_stats should be enough I think. From RECONSTRUCTION vs FULL - on rebuilding mode Oracle rebuilt just the table $I from scratch (it creates a temporary table, fills and then current exchanges and the new tables). It should be much faster that the FULL optimization, where the picture remains the same and only its content changes. The resulting table will be more compact, too.

Tags: Database

Similar Questions

  • CQ61-313us: maestro also needing help code is 75957252 for the bios password reset

    Maestro also needing help code is 75957252 for the bios password reset

    Check your other post. I answered here.

  • Need help with instr/Regexp for the query

    Hi people of Oracle

    I use Oracle

    Oracle Database 11 g Enterprise Edition Release 11.1.0.7.0 - 64 bit Production
    With partitioning, OLAP, Data Mining and Real Application Testing options

    I have a few responses from students and the valid values are + / / (alphabet) o/p and spaces at the end of the scam only not in the middle.

    According to my condition, the registration number 2 3.4 must be in the request but I'm alone (chart 3).

    Can we use REG_EXP

    Help, please.

    Thanks in advance.

    Rajesh

    with x as)
    (
    SELECT '+-+-POPPPPPP' STUDENT_RESPONSE, 1 numero_enregistrement FROM DUAL Union all the
    SELECT ' + --AOPPPPPP++' STUDENT_RESPONSE, 2 numero_enregistrement FROM DUAL Union all the
    SELECT "+-+-OPPPPPP -' STUDENT_RESPONSE, 3 numero_enregistrement FROM DUAL union all
    SELECT '+-+-9OPPPPPP' STUDENT_RESPONSE, 4 numero_enregistrement FROM DUAL)
    )
    (SELECT NUMERO_ENREGISTREMENT,
    TRIM (STUDENT_RESPONSE) X
    WHERE
    ((INSTR (UPPER (TRIM (STUDENT_RESPONSE)),'-') = 0))
    OR (INSTR (UPPER (TRIM (STUDENT_RESPONSE)), '+') = 0)
    OR (INSTR (UPPER (TRIM (STUDENT_RESPONSE)), 'O') = 0)
    OR (INSTR (UPPER (TRIM (STUDENT_RESPONSE)), 'P') = 0)
    OR (INSTR (UPPER (TRIM (STUDENT_RESPONSE)),' ')! = 0)
    )
    )

    Hi, Renon,

    Rb2000rb65 wrote:
    Hi people of Oracle

    I use Oracle

    Oracle Database 11 g Enterprise Edition Release 11.1.0.7.0 - 64 bit Production
    With partitioning, OLAP, Data Mining and Real Application Testing options

    Thanks for posting this (and the WITH clause for sample data). It is very useful.

    I have a few responses from students and the valid values are + / / (alphabet) o/p and spaces at the end of the scam only not in the middle.

    You combine several qeustions responses in a single VARCHAR2 column? It would be better to have a separate line for each question.

    According to my condition, the registration number 2 3.4 must be in the request but I'm alone (chart 3).

    What exactly are your needs? You try to find the rows where the student_response contains one of the forbidden characters, or if it contains a space anywhere, but at the end of the string?

    Can we use REG_EXP

    Yes, but it's pretty easy and probably more effective, do not use regular expressions in this case:
    Here's one way:

    SELECT     record_number
    ,     student_response
    FROM     x
    WHERE     TRANSLATE ( UPPER ( RTRIM (student_response, ' '))
                , 'X+-OP'
                , 'X'
                )     IS NOT NULL
    ;
    

    In other words, once you remove the spaces and all occurrences of '+', '-', 'o' or 'P', then the forbidden characters are left, and you want to select the line, if there is one of these.

    If you really, really want to use a regular expression:

    SELECT     record_number
    ,     student_response
    FROM     x
    WHERE     REGEXP_LIKE ( RTRIM (student_response)
                  , '[^-+OP]'          -- or '[^+OP-]', but not '[^+-OP]'.  Discuss amongst yourselves
                  , 'i'
                  )
    ;
    

    but, again, it will be probably slower than the first solution, using TRANSLATE.

    Published by: Frank Kulash, October 17, 2011 13:05

    Published by: Frank Kulash, October 17, 2011 13:41
    What follows is a bit simpler that TRANSLATE:

    SELECT     record_number
    ,     student_response
    FROM     x
    WHERE     RTRIM ( UPPER ( RTRIM (student_response, ' '))
               , '+-OP'
               )          IS NOT NULL
    ;
    
  • Need help setting up WebUI for the Wireless Gateway

    I have problem installing a Web UI for my demo project.

    I just do temperature is a simple application of WSN on a node of thermocouple WSN-3121 and it logging on a RT NI 9792 wireless gateway.

    Then, I wanted to create a web user interface and display whats in the user interface of the gateway - see the project.

    SO I'm stuck with the web INTERFACE coming.  I tried to read as much as I can but I still don't know what I'm doing wrong.

    As far as I see it, I need to create a web service in the construction for my gateway specifications and place the gateway_main.vi like the vi to use.  Then build and deployment.  Once it happened, and I run the vi on the bridge, I created a Web user interface as shown in the picture, where it counts the the gateway web service using 192.168.0.16:8080 - that works very well.

    When I run the Web interface, it is just and expires.

    I am using LAbview 2010.  Help, please.

    Hello markza,

    Your approach using the Web user interface designer and understanding its use case is quite accurate, the question lies in the web service, you have deployed. The VI you build as web service, which is gateway_main.vi, while loops inside and so cannot be used as a web service. The reason for the timeout is that your user interface Builder application calls the web service LV2010 and is stuck there for waiting time loops to complete. Also, the data type of cluster is not supported in the user Web interface Builder, so you'd have to break up from the entrance of the time of picking for the node wireless in two separate digital inputs.

    I recommend creating a Subvi out of your code inside of the while loop inside gateway_main.vi. The Subvi must have two digital inputs to replace the cluster (as mentioned above) and do not have one of the Boolean inputs Start or Stop. Output would remain the same, that is, two doubles and a Boolean value.

    I would like to know if this is useful and if you have any other questions.

    Thank you!

    Dieudonné jgfcnbh

    The user of LabVIEW Web R & D interface generator

  • Need help to download files for the old order since October 2004

    I have a very old order for a font that I want to re - upload the files, but the order does not appear under my account information. Is there a way I can still access my files?

    Order date: October 29, 2004 04:56 PDT

    Order number: PON1267F24A

    Thank you

    -Brad Turner

    I doubt you'll have much luck due to the lack of support for old products, but try to support customer:

    To the link below, click on the still need help? the option in the blue box below and choose the option to chat...

    Make sure that you are logged on the Adobe site, having cookies enabled, clearing your cookie cache.  If it fails to connect, try to use another browser.

    Get help from cat with orders, refunds and exchanges (non - CC)

    http://helpx.Adobe.com/x-productkb/global/service-b.html ( http://adobe.ly/1d3k3a5 )

  • I need help activate my email for the fresno City College students

    It says in the instructions for the activation of the email account that my username would be outlook.com att (lastname_studentid @my.scccd.edu). I don't see how it goes because it won't let u use your user id. I JUST DON'T UNDERSTAND

    You must contact your town order IT support staff.  We do not really have a way to help you since we do not know how the College computers are configured, the network on which they are running and so on.  IT is supported by your local personnel will be because they work with the stuff every day.

  • Need help... For tag cfscript context validation error.

    Code:

    < cffunction name = "computeHash" access = "public" returntype = "String" >
    < name cfargument = "password" type = "string" / >
    < cfargument = 'salt' name type = "string" / >
    < name cfargument = "iterations" type = "numeric" required = "false" default = "1024" / >
    < name cfargument = "algorithm" type = "string" required = "false" default = "SHA512" / >
    < cfscript >
    chopped var = ";
    var i = 1;
    axes = hash (password & salt, arguments.algorithm, 'UTF-8');
    for (i = 1; i < = iterations; i ++) {}
    axes = hash (axe & salt, arguments.algorithm, 'UTF-8');
    }
    return chopped;
    < / cfscript >
    < / cffunction >

    Web application error:

    For tag cfscript context validation error.

    The start tag must have a corresponding closing tag. An explicit end tag can be provided by adding < / cfscript >. If the body of the tag is empty, you can use the shortcut < cfscript... / >.

    The CFML compiler treated:

    • a start of tag cfscript on line 11, column 12.
    • a start of tag cfscript on line 11, column 12.
    The error occurred in xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\salty.cfc: line 11
    9 :        <cfargument name="iterations" type="numeric" required="false" default="1024" />
    10 :        <cfargument name="algorithm" type="string" required="false" default="SHA512" />
    11 :        <cfscript>
    12 :           var hashed = '';
    13 :           var i = 1;

    I'm completely lost on why he is groping with why it is said that there is no closing tag.  Help!

    Thank you

    What is on lines 1-7 of this file?

    This code compiles fine for me on CF8 and CF9, so this is not what's wrong.

    You are trying to compile it on any earlier version of CF, CF8 are you?  The< and="" ++="" operators="" are="" not="" valid="" prior="" to="" cf8. ="" cfmx7="" might="" see="" the="">< as="" a="" stray="" angle="" bracket,="" and="" get="" confused. ="" i="" don't="" have="" cfmx7="" running="" here="" to="" test="" the="" exact="" error="" that="" would="" produce,="">

    --

    Adam

  • Help with SOQL query for the filter of AutoSynch

    The goal is to seize any product that contains "Maint" in there. Here's what we have but we get no result of the call.

    Where:

    (LastModifiedDate > = last download successful AND Product__c = ' Maint % ')

    Any suggestions or corrections?

    I would like to use

    .... Product__c like ' % Maint.

    and test my query SOQL using Force.com Explorer or your friendly local SFDC administrator to debug any further.

  • Need help to find and install the game Chess Titans Windows Vista for XP

    Need help to find and install the game Chess Titans Windows Vista for XP

    Hi SBOYDC130guy,

    We will not be able to install titan of failures on windows XP because it is designed for Windows Vista and Windows 7 and it's built-in game.

    With regard to:

    Samhrutha G S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Hey guys, ive tryied buy photoshop like a hundret times, ive typed in my information payment and everything I need, went on the button pay on the accept button but nothing happened, I need help pls passing sry for my language

    Hey guys, ive tryied buy photoshop like a hundret times, ive typed in my information payment and everything I need, went on the button pay on the accept button but nothing happened, I need help pls passing sry for my language

    Contact adobe during the time pst support by clicking here and, when available, click on "still need help," http://helpx.adobe.com/x-productkb/global/service-ccm.html

  • An error occurred when DNS was questioned about the resource record (SRV) service location used to locate a domain controller Active Directory (AD DC) for the domain 'HAMI. LOCAL ".

    An error occurred when DNS was questioned about the resource record (SRV) service location used to locate a domain controller Active Directory (AD DC) for the domain 'HAMI. LOCAL ".

    The error was: "an existing connection was to be closed by the remote host".
    (0 x 00002746 WSAECONNRESET error code)

    The query was for the SRV record for _ldap._tcp.dc._msdcs. HAMI. LOCAL

    Hello

    Your question of Windows 7 is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please post your question in the Forums TechNet Windows 7 Technet.

    Here is the link:
    http://social.technet.Microsoft.com/forums/en-us/w7itpronetworking/threads

    Hope this helps

  • An error occurred when querying for the pending operations

    Original title: sysprep problem
    I have an acer aspire 5738Z, I use windows 7 (64 bit) I try to open sysprep.exe and it does not open, a text box appears saying "an error occurred when querying for the pending operations. What can I do to fix this?

    Hello

    Thanks for posting the request in the Microsoft community forums.
    I understand that you receive the error "an error has occurred when querying for outstanding operations" when trying to open sysprep.exe on the computer.

    You can try the solutions provide and check if it helps solve the issue.

    Method 1:
    You can scan System File Checker to fix corrupted files.
    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7
    http://support.Microsoft.com/kb/929833

    Method 2:
    If the steps above fail then you can try the steps and check.

    a. run regedit by typing regedit in start search by pressing ENTER.
    b navigate to the following key:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control
    Key: RegistrySizeLimit
    Type: REG_DWORD
    Value: 0xffffff (4294967295)
    c. reset.

    If you need help with Windows, keep us informed. We will be happy to help you.

  • WMIC command fails for the domain user

    Hi all

    I use windows 7 and testing commands wmic as below

    WMIC/node: "Computer1" / User: "domain\username" / Password: "password" PROCESS CALL Create "calc.exe"

    Most of the time control fails with RPC server unavailable to users in the domain (default of 75%). Working sometimes and mostly failing to time.

    Error code

    0x800706BA-online the RPC server is unavailable.

    If I use the local user, she is successful, command below still works (100% success)

    WMIC/node: "Computer1" / User: 'Nom_ordinateur\Nom_utilisateur' / Password: 'password' PROCESS CALL Create "calc.exe"

    I have two computers running windows 7, the firewall is disabled

    Executing command from computer2 as below

    WMIC/node: "Computer1" / User: "domain\username" / Password: "password" PROCESS CALL Create "calc.exe"

    1 computer settings

    1. Adds the domain under group administrator user
    2. Configure dcom through DCOMCNFG.exe and got all rights to domain user

    (DCOM remote launch and activation permissions for a user, the remote DCOM access permissions)

    1. Rights granted to wmi namespace (root, cimv2) of domain user using wmimgmt.msc (all rights to the namespace namespace and sub)
    2. Firewall settins according to the - http://msdn.microsoft.com/en-us/library/aa822854%28v=vs.85%29.aspx

    Note: The firewall is disabled

    1. UAC disabled
    2. Check rpcss and associated to the computer and all services are running

    What could be the reason of failure for the domain user (work awhile and is Server Unavailable RPC over time). Tried to restart that wmic user system and field control did not exist, after awhile like 30-45 minutes user field the wmic commands work and default again. How to solve this problem (such as checking the logs)?

    Thank you

    Mani

    Hello

    I suggest you according to the question in this forum and check if that helps:

    http://social.technet.Microsoft.com/forums/en/winserverDS

    It will be useful.

  • "Any new name for the program" has encountered a problem and needs to close. Sorry for the inconvience

    Whenever we try to install something new, that settles it, but when we get the same error message

    "the new name of the program" has encountered a problem and needs to close.  Sorry for the inconvience

    We can't get anything to run now

    Hello

    1 is this problem limited only when installing an application?
    2. what application are you trying to install?

    Method 1.
    I recommend you to reregister the Installer engine.
    Here's how:
    a. Click Start, click Accessories and then click command prompt.
    b. at the command prompt, type the following and press ENTER after each line:

    MSIExec /Unregister
     
    MSIExec/regserver

    Method 2.
    For other methods, see the article below.
    How to troubleshoot issues that may occur when you install, uninstall, or upgrade one program on a Windows computer
    http://support.Microsoft.com/kb/2438651/en-us

    I hope this helps.

    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Error "Generic Host process for Win 32 services has encountered a problem and needs to close." Sorry for the inconvenience. "Please tell MIcrosoft this problem."

    Original title: programs appearing and disappearing

    Generic Host process for Win 32 services has encountered a problem and needs to close.
    Sorry for the inconvenience.
    Please tell this problem to MIcrosoft. We have created an error report that you can send to help us improve the generic
    Host Process for Win 32 Services. We will treat this report as confidential and anonymous. To see the data click on send
    Error report or not send.
    I clicked on the error report, and that's what he said... szAppname:svchost.exe szAppver: 5.1.2600.5512
    szModver: 5.1.2600.5755 szModname: ntdll.dll compensate 00023845 etc, etc.

    Hi 1jimbo1,

    1. when exactly you receive this error message?
    2. did you of recent changes to the computer?

    Method 1:

    Step 1:

    You can try to start in safe mode and check if the problem occurs.

    Check out the link for more information on starting your computer in SafeMode below:

    http://support.Microsoft.com/kb/315222

    Step 2:

    If the problem does not happen in safe mode and then, try to perform a clean boot.

    A clean boot to check if startup item or services to third-party application is causing this issue.

    You can read the following article to put the computer in a clean boot:

    http://support.Microsoft.com/kb/310353

    If your problem is resolved after the clean boot, and then follow the steps mentioned in the article above to refine the exact source.

    After you have used the boot is a way to solve your problem, you can follow the steps to configure Windows XP to start normally.

    Method 2:

    You can also check the following link and complete the scan line on your computer to check whether your computer is infected with a virus or not.

    http://OneCare.live.com/site/en-us/default.html

    Thank you, and in what concerns:
    I. Suuresh Kumar - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

Maybe you are looking for