Problem in Index Scan in Timesten

I m cheking Explain plan for below query in timesten,
explain plan for UPDATE TBLTCUSTOMERRESERVATION SET CLOSINGREMARK = 0 where RESERVATIONIDENTIFIER='loadtest_onlymonetory8370' and RATINGGROUPID ='' AND RATINGSERVICEID = '';
Query Optimizer Plan:
STEP: 1
LEVEL: 1
OPERATION: RowLkSerialScan
TBLNAME: TBLTCUSTOMERRESERVATION
IXNAME: <NULL>
INDEXED CONDITION: <NULL>
NOT INDEXED: FALSE
STEP: 2
LEVEL: 1
OPERATION: RowLkUpdate
TBLNAME: TBLTCUSTOMERRESERVATION
IXNAME: <NULL>
INDEXED CONDITION: <NULL>
NOT INDEXED: <NULL>
While passing the values instead of null in below query :
explain plan for UPDATE TBLTCUSTOMERRESERVATION SET CLOSINGREMARK = 0 where RESERVATIONIDENTIFIER='loadtest_onlymonetory8370' and RATINGGROUPID = 0 AND RATINGSERVICEID = 0;
Query Optimizer Plan:
STEP: 1
LEVEL: 1
OPERATION: RowLkRangeScan
TBLNAME: TBLTCUSTOMERRESERVATION
IXNAME: IDX_GRP_RATEID
INDEXED CONDITION: TBLTCUSTOMERRESERVATION.RESERVATIONIDENTIFIER = 'loadtest_onlymonetory8370' AND TBLTCUSTOMERRESERVATION.RATINGGROUPID = 0 AND TBLTCUSTOMERRESERVATION.RATINGSERVICEID = 0
NOT INDEXED: <NULL>
STEP: 2
LEVEL: 1
OPERATION: RowLkUpdate
TBLNAME: TBLTCUSTOMERRESERVATION
IXNAME: <NULL>
INDEXED CONDITION: <NULL>
NOT INDEXED: <NULL>
kindly help me why it is not scanning indexes when we are passing values in "WHERE" clause as null or '';

Hi user10366531,
First of all, your first query will not work properly, because of null values.
UPDATE TBLTCUSTOMERRESERVATION SET CLOSINGREMARK = 0 where RESERVATIONIDENTIFIER='loadtest_onlymonetory8370' and RATINGGROUPID ='' AND RATINGSERVICEID = '';
                                                                                                       ||
UPDATE TBLTCUSTOMERRESERVATION SET CLOSINGREMARK = 0 where RESERVATIONIDENTIFIER='loadtest_onlymonetory8370' and RATINGGROUPID =null AND RATINGSERVICEID = null;Secondly, almost all relational databases (not only TimesTen and Oracle DB) ignore NULL values, because index structure doesnt store NULL values.
There is one way to resolve this task - it is using function based index (with NVL function for instance). Unfortunately, I dont have an opportunity to test it in TimesTen.
In Oracle DB you can use the following:
create index test_null_idx on emp  (nvl(name,'null'));regards,
Gennady

Similar Messages

  • Problems with Indexing and Classification

    hi KM Gurus,
    We faced some problems in Indexing and Taxonomies for which I would like to know the solution/reason.
    (1) We tried providing query based classification in which the query condition which is based on the "Content" alone worked for us. Whenever we tried specifying conditions based on "file extension" or "title", it didn't work out. Did that work for anybody else?
    (2) Also we are not able to get any proper info about the various options that are available while creating a query based classification. For example, there are two options like "title" and "string title". But we donno the difference b/n the two. If it works out we can find the difference. But it is not working too. So we are not able to find the difference between the two.
    (3) And I tried setting the crawler parameter of my own instead of the standard crawler. But the index was found to be inactive when i set that to my crawler and it worked fine with the standard crawler. I am not able to make it active. Any clues behind this?
    Expect all your guidance and help.
    best regds,
    alagammai.

    Hi Alagammai,
    concerning issues (1) and (2).
    Normally the mentioned properties are displayed as 'Name' and 'Namme as String'.
    These two properties are(in most cases) the title of the document.
    One is indexed  in 'Text' format. The other one in 'String' format. That results into different opportunities within the query based classification.
    'Displayname as String' can be used to sort documents alphabetically: A, B, ... into categories.
    'Displayname' allows you to do a linguistic scan on document titles.
    To separate file types I would use the property MIME-Type.
    But you may try to define a query *.doc for the property 'Name as String'.
    Regards Matthias

  • Issue due to index scan

    We have issue with a query which retrieves only 200 rows but it takes very long time (4 minutes).
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute     11      3.42       3.37          0          0          0           0
    Fetch       11    291.47     289.10          0   62171017          0         208
    total       23    294.89     292.48          0   62171017          0         208
    The row source operation has following which is causing the issue
    Rows     Row Source Operation
    61889184            INDEX RANGE SCAN UK_CAR_GLP (cr=244966 pr=0 pw=0 time=159419 us)(object id 143687)
       2440           TABLE ACCESS BY INDEX ROWID CAR_CLP (cr=61891646 pr=0 pw=0 time=229893035 us)                     
       2440            INDEX UNIQUE SCAN PK_CAR_CLP (cr=61889206 pr=0 pw=0 time=162906082 us)(object id 11167)      The index (PK_CAR_CLP) optimizer is using a primary key.
    Why there are so many cr ? Also what may be the reson that it is taking time on index scan (3 min on one index).
    Thanks
    Girish
    Edited by: 968658 on Oct 31, 2012 5:46 AM
    Edited by: 968658 on Oct 31, 2012 5:52 AM
    Edited by: 968658 on Oct 31, 2012 5:54 AM

    Welcome to Oracle Forum.
    Please read below link :
    When your query takes too long ...
    When your query takes too long ...
    And
    HOW TO: Post a SQL statement tuning request - template posting
    HOW TO: Post a SQL statement tuning request - template posting
    Read above link. They have well written how to post questions which are related to slow performance complaints. Try to post as much details as you can to help us so that we may get some clue that where is the actual problem i.e. :
    1.What is sql
    2.show parameter optimizer
    3....
    Regards
    Girish Sharma

  • Problem with index in merged projects

    Dear Sir,
    I have a problem with index in the master project, I can only
    view the master project index keywords under the index tab. My
    master project contains 2 topics besides the other sub projects. I
    have created index for all sub projects indvidually and at the end
    I created the master project index.
    I made sure that the 'Binary Index' flag is ticked before
    compilation and stil the problem is on, do somebody know what could
    be the problem.

    Hi,
    Two points here.
    Firstly, you can duplicate SSL's. (Right click on an SSL in
    the projects sub-directory and select the duplicate layout option.
    This will give you a copy of the original SSL).
    I tend to have two SSL's - one is local and I use that every
    time I test compile the project when I'm working on it.
    The other is set to output to the master project. I use that
    once I'm happy with the sub-project and start working with the
    master project.
    Second point is to be aware of how RoboHelp treats the
    imported/merged .chm files from the sub projects.
    It imports them into the main project master directory - then
    when the master project is compiled it puts a copy of them into the
    master project SSL. However, if you re-compile it doesn't overwrite
    the files that are already in the master project SSL directory.
    This is why you have to be aware of where the sub project
    .chm files are going - you need to make sure that if you revise the
    sub projects, a fresh copy of the .chm files ends up in the output
    SSL directory of the master project.

  • Sequence order and  index scan

    1)If i miss the sequence while importing tables how can i restore the correct sequence value for that particular column of that table.
    2) I created 2 indexes for a table the table is big around 3 gb.The indexes also around 1.3 and 1 gb each.when i am trying to use select count(*) from table_name it takes long time to get the result.If i am using witout indexes it is giving fast result than previous.Why this is happening.If i drop the indexes whehter it will give more performance.This is oracle 7.3.4 on soalris 7.How can i avoid the index scan any hints to use full tablescan
    with regards
    ramya

    FULL hint:
    SQL> set autotrace traceonly explain
    SQL> select * from emp e where empno = 12 ;
    Execution Plan
       0      SELECT STATEMENT Optimizer=CHOOSE (Cost=2 Card=1 Bytes=41)
       1    0   FILTER
       2    1     TABLE ACCESS (BY INDEX ROWID) OF 'EMP' (Cost=2 Card=1 Bytes=41)
       3    2       INDEX (UNIQUE SCAN) OF 'PK_EMP' (UNIQUE)
    SQL> select /*+ FULL(e) */ * from emp e where empno = 12 ;
    Execution Plan
       0      SELECT STATEMENT Optimizer=CHOOSE (Cost=2 Card=1 Bytes=41)
       1    0   FILTER
       2    1     TABLE ACCESS (FULL) OF 'EMP' (Cost=2 Card=1 Bytes=41)
    SQL> disconnect
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.3.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.3.0 - Production
    SQL>

  • Why full index scan is faster than full table scan?

    Hi friends,
    In the where clause of a query,if we give a column that contains index on it,then oracle uses index to search data rather than a TABLE ACCESS FULL Operation.
    Why index searching is faster?

    Sometimes it is faster to use index and sometimes it is faster to use full table scan. If your statistics are up to date Oracle is far more likely to get it right. If the query can be satisfied entirely from the index, then an index scan will almost always be faster as there are fewer blocks to read in the index than there would be if the table itself were scanned. However if the query must extract data from the table when that data is not in te index, then the index scan will be faster only if a small percentage of the rows are to be returned. Consiter the case of an index where 40% of the rows are returned. Assume the index values are distributed evenly among the data blocks. Assume 10 rows will fit in each data block thus 4 of the 10 rows will match the condition. Then the average datablock will be fetched 4 times since most of the time adjacent index entries will not be in the same block. The number of single datablock fetches will be about 4 times the number of datablocks. Compare this to a full table scan that does multiblock reads. Far fewer reads are required to read the entire table. Though it depends on the number of rows per block, a general rule is any query returning more than about 10% of a table is faster NOT using an index.

  • Now that I have upgraded to Yosemite I have a problem when I scan documents.  Before, a window showed today's activity.  Now I have to search through all my documents and hope to find what I just scanned.

    Now that I have upgraded to Yosemite I have a problem when I scan documents.  Formerly, a window showed today's activity.  Now, I have to search through all the documents in my history to find what I just scanned.  Sometimes I can't even find the doc.

    Most scan apps have a setting whereas, your scan(s) can go directly to your desktop.  No need to "hunt" for scanned docs.

  • Add dummy Like condition '%%' inorder to use index scan

    Hi,
    I have a table like below , which have data which capture each minute(columnB) transactions
    CREATE TABLE tableA
    columnA     CHAR(6),
    columnB     Date,
    columnC     Number(3,0),
    CRT_ID    CHAR(8),
    CRT_TS    TIMESTAMP(6),
    UPD_ID    CHAR(8),
    UPD_TS    TIMESTAMP(6),
    CONSTRAINT PK_tableA_colAB PRIMARY KEY (columnA , columnB )
    When I query the table, to get the list of transaction between particular date, it goes for TABLE FULL SCAN.( cost and execution time also high)
    Total no of records in the table(tableA) is 13669094, the below query returns only around 150 to 200 no of records
    select columnA,columnB,columnC,Crt_Id,Crt_ts
    from tableA
    where columnB between TO_DATE('06/28/2013','MM/DD/yyyy') and to_date('06/29/2013','MM/DD/yyyy')
    when i use the query like below it will use the INDEX SCAN (cost and execution time also less)
    select      columnA,columnB,columnC,Crt_Id,Crt_ts
    from         tableA
    where      columnB between TO_DATE('06/28/2013','MM/DD/yyyy') and to_date('06/29/2013','MM/DD/yyyy')
    and           columnA like '%%'
    Please advice is it good to add condition like '%%' inorder to use the index scan. Also kindly let me know if it works in the same way in all environments.

    Hi RP0428,
    Thank you very much for your response.
    1. Are you collecting statistics on the table and indexes?
    2. Post the exact command you use to collect those statistics.
    Recently my DBA had gathered the statistics on 17-Dec-2013 22:01:32(LAST_ANALYSED). I am unaware about what query he ran to gather the statistics.
    After that it executed in 28 seconds itself, before it took several minutes.
    My concerns is only gathering the statistics periodically will improve performance.
    Table is growing with thousands of records daily. Already it have 13669094 records. In order to avoid Full Table Scan
    From my knowledge, I feel creating composite Range-Hash partitioning will helpful in improving the performance.
    3. Post info about the data distribution for the two columns used by the index. This is 'counts and amounts' for each of the two columns and a GROUP BY date showing the skew of the values.
    Plz find the details below
    ColumnA
    ColumnB
    AA1
    118800
    AA2
    117600
    AA3
    118200
    AA4
    118200
    AA5
    118200
    AA6
    118800
    AA7
    118800
    AA8
    117600
    AA9
    117600
    AA10
    117600
    AA11
    118200
    AA12
    118200
    AA13
    37234
    AA14
    118200
    AA118
    18450
    AA119
    96600
    AA120
    105000
    AA121
    105000
    AA122
    105600

  • Need help with select stmnt but not loosing unique index scan...

    it's 10 g
    any way to get this faster using uniqe index?
    select * from my_test3
    where c1 = :a_value
    and c3 = maximum value by c1....
    Any work arround so that i do not loose my unique index scan..
    i know I can use subquery or some..but that is not a good solution...
    SQL> drop table my_test3;
    Table dropped.
    SQL>
    SQL> create table my_test3
      2  (c1 number ,
      3   c3 timestamp );
    Table created.
    SQL> alter table my_test3
      2   add primary key(c1,c3);
    Table altered.
    SQL>
    SQL> insert into my_test3  values(1,systimestamp);
    1 row created.
    SQL> insert into my_test3  values(1,systimestamp);
    1 row created.
    SQL> insert into my_test3  values(1,systimestamp);
    1 row created.
    SQL> insert into my_test3  values(1,systimestamp);
    1 row created.
    SQL> insert into my_test3  values(2,systimestamp);
    1 row created.
    SQL> insert into my_test3  values(3,systimestamp);
    1 row created.
    SQL> insert into my_test3  values(3,systimestamp);
    1 row created.
    SQL> insert into my_test3  values(5,systimestamp);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL>
    SQL> set line 130
    SQL> set long 400000
    SQL> explain plan for
      2  select * from my_test3
      3  where c1 = :val2
      4  and c3 = :val4;
    Explained.
    SQL> SELECT * FROM TABLE(dbms_xplan.display);
    PLAN_TABLE_OUTPUT
    Plan hash value: 964817202
    | Id  | Operation         | Name         | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT  |              |     1 |    26 |     1   (0)| 00:00:01 |
    |*  1 |  INDEX UNIQUE SCAN| SYS_C0047363 |     1 |    26 |     1   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
    PLAN_TABLE_OUTPUT
       1 - access("C1"=TO_NUMBER(:VAL2) AND "C3"=TO_TIMESTAMP(:VAL4))
    13 rows selected.
    SQL>

    select my.c2 as c1, my.c3 as c3 from (select t3.c1 c2, t3.c3, max(t3.c3) over (partition by t3.c1 ) as cme from my_test3 t3) my
    where my.c3 = cme
    C1 C3
    1 07-MAY-08 01.26.26.617994 PM
    2 07-MAY-08 01.26.26.621817 PM
    3 07-MAY-08 01.26.26.628041 PM
    5 07-MAY-08 01.26.26.631821 PM
    | Id  | Operation         | Name         | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT  |              |     8 |   312 |     2   (0)| 00:00:01 |
    |*  1 |  VIEW             |              |     8 |   312 |     2   (0)| 00:00:01 |
    |   2 |   WINDOW BUFFER   |              |     8 |   208 |     2   (0)| 00:00:01 |
    |   3 |    INDEX FULL SCAN| SYS_C0025048 |     8 |   208 |     2   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       1 - filter("MY"."C3"="CME")
    Note
       - dynamic sampling used for this statementYou'll need to see if you lose the index or not...

  • Does anybody have this update problem? index-lion-snowleopard-leopard.merged-1.sucatalog could not be found

    Does anybody have this update problem?
    index-lion-snowleopard-leopard.merged-1.sucatalog could not be found on server swscan.apple.com
    Is there a solution?

    You can send feedback to Apple here >  Apple - Mac OS X - Feedback
    Including the link to this thread may help >  https://discussions.apple.com/message/16092403#16092403
    I'm seeing numerous posts regarding this issue also.

  • Pages '09 problem with index

    Hi all,
    So this is my problem, i'm editing ePub to publish in the Apple iBooks Store, and do them with Pages, but i've big problems with index
    i'm using personal styles (as i change chapter colors, font size)
    in "old Pages" i could not do index as it was telling me i was not using none of the style in index (even with my proper styles markeds, now when i create index in the style box my styles doesn't show soo it can't create index)
    In Pages '09, i have no problem to create index, the problem is when i export to ePub it does not show it
    or when it was shoing it, in the normal index, i could also see it in the book as a normal page, and i want it only in the normal ebook index.
    any suggestions?
    thanks for your help
    (if answer can be from Spanish person in Spanish, beter, than beter, but English or french answer welcome too )
    have nice .... what ever it is for you.

    more or less i got it (after trying, and trying)...
    i used the template from apple: http://images.apple.com/support/pages/docs/ePub_Best_Practices_EN.zip
    then i make my peronal style using the color i whant for chapter title... this is ok
    but still hane the enoying  index as normal page....(pic 1) only what pic 2
    if i find a solution, will post it, if you find it, and also how to change the color of the index text (it is supposed to be change to black...)
    I'll apreciate the help.
    thanks again, and have nice day

  • C7250 All In One When scanning; when scan job completed, there is a problem with HP Scanning

    Using Windows Vista Home Premium edition.  Using HP C7250 All in One.
    When scaning a document when the scan job is completed, a window pops up that there is a problem with HP Scanning and need to close the program.  It occurs on every scan.
    When you click the close program button, the HP program indicates completing scan, one page after the other!
    Not sure what is going on, I have used the HP scan/print doctor, says everything is OK.  
    I have checked for HP updates and there are none!  The only thing I have not done is to run the installation disk!
    Anyone have any ideas as to the problem and a resolve to fix the problem?  other than buying a new unit!!
    Thanks for your help

    Hi flamechaser,
    Welcome to the HP Forums.
    I see that you are having some issue's when attempting to scan to the computer.
    I do have a few suggestions we can try in the attempt to troubleshoot this issue.
    First off, please make sure that you have the printer power cable connected directly to a wall outlet and not a power bar/strip. Here is a document that uses a LaserJet printer as an example but it is meant for HP products in general. Please click on the following link that explains the Issues when Connected to an Uninterruptible Power Supply/Power Strip/Surge Protector.
    I have also located a document that deals with communication issues between the computer and printer. Please click on the following link for a Windows Error: 'No HP devices have been detected. HP Solution Center will now close.'
    If the troubleshooting does not help resolve your issue, I would then suggest calling HP's Technical Support to see about further options for you. If you are calling within North America, the number is 1-800-474-6836 and for all other regions, click here: click here.
    Thanks for your time.
    Cheers,  
    Click the “Kudos Thumbs Up" at the bottom of this post to say “Thanks” for helping!
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    W a t e r b o y 71
    I work on behalf of HP

  • I am having a problem converting a scanned pdf file into Excel.

    I am having a problem converting a scanned pdf file into Excel. I do not get the columns and rows to align, just a single column of everything. Any suggestions?

    Export makes use of what is "in" a PDF.
    Good export is the "silk purse" and, ya know, you canna make a silk purse from a sow's ear (which is what any scanned image in PDF is with regards to export).
    The quality of export is dictated by the quality of the PDF. We are taking about the "inner essences" of the PDF (e.g., degree of compliance with the PDF Standard - ISO 32000-1).
    So, what goes in goes out or "GIGO".
    This has nothing to do with Acrobat or Acrobat's export process.
    A well-formed Tagged PDF (compliant to ISO 32000-1 & ISO 14289-1, PDF/UA-1) provides a PDF that proactively
    supports content export by Acrobat.
    To get the good stuff from export you start with a well-formed Tagged PDF.
    Goodstuff In — Goodstuff Out
    or
    Garbage In — Garbage Out
    "GIGO"
    Be well...
    Message was edited by: CtDave

  • Problem with index of numbers in BSP Front end

    Hello All,
    I am facing the below problem. Request your help.
    Scenario: When I am trying to add the projects in the Front end , I am facing the problem with the index of numbering of the projects.
    Example: If I am adding 6 projects ( at the max only 4 on each page i-e there are 2 pages ), then the index is wrongly numbered and the arrow (for direction of the pages) are wrongly displayed. The direction of the arrow is pointed to the next page rather pointing to the previous page and the index of numbering of the pages is wrong.
    Request you to please suggest if this is any code fault in the table maintainance activity in the backend (BSP).

    Hi Irina,
    If you mean the number range is skipping 10 numbers in between runs then its because of the buffering in the number range.
    To avoid the buffer influencing the number range, pass
    'X' to the function module parameter: IGNORE_BUFFER.
    This should resolve the problem.
    Cheers,
    Aditya

  • Problem generating index with 2th level in cs4

    Windows XP sp 3 - Indesign CS4 601
    When generating an index with a 1st and a 2th level, in the 2th level the entry of the 1st entry is always repeated.
    E.g. the index should look as this:
    text     75
         capitalized     76
         import     78
    word     105
         language     108
         meaning     109
    But actually the index looks as this:   
    text     75
         textcapitalized     76
         textimport     78
    word     105
         wordlanguage     108
         wordmeaning     109
    Is this a bug, or is there a solution for it?
    Thanks for your help!
    Luc Van de Cruys
    phaedra creative communications

    Oops!
    Just tested the script.
    I run it, and I get the script alert 'All Done' at the end.
    But nothing happens.
    This is what I do:
    - I generate the index.
    - I select the index with the text tool (select all or just put the textcursor somewhere in the index makes no difference).
    - I run the script
    - I get the message 'all done', but there is no difference. The problem persists.
    Any other ideas?
    Thanks anyway.
    L.L.

Maybe you are looking for