JS CS3: Help reduce the execution time of my script

Hello

We have developed a script to find the words/characters similar to the beginning/end of continuous lines 3 or more. The script was developed by following the steps:

1. get all the lines of the document;

2. get the first 2 characters of the first line and to compare with the first 2 characters of the two lines.

3. If the matches, then don't give a no pause after the word to flow.

The same procedure to search for characters from end of lines.

Our documents with more than 300 pages, the script runs too long (about 15 minutes) per document.

Might suggest to shorten the script running?

My sript base is:

for (k = 0; k < myStory.paragraphs.item (i).lines.length; k ++) {}

var myParaText = myStory.paragraphs.item (i);

var myChar2Fa = myParaText.lines [k].characters.itemByRange (0.1) .texts [0] .silence;
var myChar2Fb = myParaText.lines [k + 1].characters.itemByRange (0.1) .texts [0] .silence;
var myChar2Fc = myParaText.lines [k + 2].characters.itemByRange (0.1) .texts [0] .silence;

If (myChar2Fa == myChar2Fb & & myChar2Fa == myChar2Fc) {}
myParaText.lines [k + 2] .characters [-1] .noBreak = true;
}

Please suggest.

concerning

Lionel Messi

Every interaction with the costs of model object - in this case, request ID paragraphs.item (i) .line, itemByrange(), etc. Avoid this problem by storing as much as possible directly referred to in variables.

Every interaction with the text of the document itself costs too - you will see that the script runs a lot faster if you only account the number of occurrences. (But this cannot be avoided).

That said, your way to recover the first 2 characters per line is rather clumsy... My version still takes the odd minute or two, for a 300-page test document, but I think it's mainly because ID must re - flow each paragraph that it changes.

myStory = app.selection[0].parentStory;
ln = myStory.lines;
n_ln = ln.length;
for (i=0; i 1 &&
  ln[i].contents.substring(0,2) == ln[i+1].contents.substring(0,2) &&
  ln[i].contents.substring(0,2) == ln[i+2].contents.substring(0,2))
 {
  ln[i+2].characters[-1].noBreak=true;
 }
}

I am not convinced that is what you intend: avoiding three consecutive lines to begin with the same two characters. First, of course you will have to run again, as reinvesting the text can move another word on the front of the line with these same characters.

Second:-[1] is a special index in InDesign. It does not point to the point before the current (as it would if - 1 was treated the same as 0, 1, and 100), but instead it counts backward from the end of the indexed item - in this case, No Break is applied to the last character of line 3. I bet you have to apply to the last character in the 2nd line (which, if so, is easy fixed).

Tags: InDesign

Similar Questions

  • Need help on reducing the execution time of calc

    Hi all

    Please help me with this Calc.

    I have a motto calc calculation, which takes a few hours to complete.

    Please help me to improve the performance of this Calc.

    I use version 7.1.5 Essbase.

    The cube has the dimensions below.

    Time
    Measures
    Market
    Scenario of
    Year of manufacture
    Currency
    Entity (many members)
    Product (many members)

    Thanks in advance.
    Maddy

    Published by: Srinivas Madderla on April 30, 2010 05:21

    Make sure to set down on the other dimensions as well members of lev0/sheet (produced... is that 'material'?, model year, because that will help the speed of calculation script.)

    In addition, what I dig me for entities, you will want to set out ONLY the entities with Canandian currencies to convert Canadian currency. Right now, you calculate all THE currencies for all entities and it's nonsense. Besides, databases of currency have usually just a member of the "national currency", which is just directly math (no conversion), then a "$" (or whatever the common currency is), who gets his individual currencies converted into the common currency. It seems you do is back out from a database that is already 100% USD values, and that you are trying to return to calculate the equivalent local values... but you do for each currency for each entity for many products and model years and daily data... it is not instantaneous. Even if you limit the calc for entities, I don't know if you get too much information to store all the currencies separately (vs "local" and "convert", but I leave that to you.)

  • How to measure the execution time of a specific to a VI process?

    Hello! My VI has two processes: compression and edge detection image and I'm trying to measure the execution time for the process of detection of edge of my VI, but I don't know how to do. Please give me some ideas on how to do it. Thank you!

    There are several ways that you can do.

    -L' one is using the number of cycles before and after your vi to get time like here: http://digital.ni.com/public.nsf/allkb/6F6B9F4E149C80578625652800784764

    - or use the profiling: https://zone.ni.com/reference/en-XX/help/371361H-01/lvhowto/profiling_vis/

    Edit: If you're open to suggestions:

    -You have not to load the image inside the loop instead, make him outside of the loop.

    - And I see of many IMAQ buffers are not removed properly. You can have everything at once by Images (No) by logging in to Boolean TRUE: http://zone.ni.com/reference/en-XX/help/370281P-01/imaqvision/imaq_dispose/

  • Why the execution time increases with a while loop, but not with "run continuously?

    Hi all

    I have a problem of severe weather that I don't know how to fix it because I don't know exactly where it comes from.

    I order two RF switches via a data acquisition card (NI USB-6008). One job at the same time can be selected on each switch. Basically, the VI created for this feature (by a colleague) resets all the outputs of acquisition data and active then those desired. It has three entrances, two chain simp0le controls and a cluster table, that contains the list of all the outputs and some practical information to know what is connected (specific to my application).

    I use this VI in a complex application, and I have some problems with the execution time, which increased whenever I said the VI, so I did a test VI (TimeTesting.vi) to determine where the problem came. In this special VI I record the execution time in a csv file to analyze then with excel.

    After several tries, I found that if I run this criterion VI with the while loop, execution on every cycle time increases, but if I remove the while loop and use the funtionnality "Continuous run", the execution time remains the same. In my high level application, I have while loops and events, and so the runtime increases too.

    I someone could explain to me why execution time increases and how can we avoid this? I have attached my VI test and the necessary subVIs, as well as an image of a graph that shows the execution time with a while loop and «run permanently»

    Thanks a lot for your help!

    Your SetReset_DO VI creates a channel whenever it is called.  And that you never delete a task.

    When running continuously, that it's as if it only runs once and LabVIEW has internal mechanisms to close references that will not be used again.  When a VI is used as a Subvi, LV does not know if she will be called again, and lacks these things until the first level VI stops. You have a memory leak.

    Just as you open and close your file outside the loop for, create your channel out of the loop.

    Lynn

  • How to reduce the startup time of timesten

    Hi guys

    We run TT on a PC server and 50G TimesTen data located in a warehouse (NOT of SSD). Every time we start the TimesTen, it costs about 30 minutes, which is a little longer than we expected.

    I put RecoveryThreads = 8 to speed up the process of rebuilding indexes, but the process of reading and writing of files check point looks as the main costs of 30 minutes.

    Could you tell how to speed up the reading and writing of files of control point to reduce the boot time? Also could you explain why TimesTen need to write checkpoint files at startup.  I can easily understand reading the memory checkpoint files (loading data in memory), after loading why TT wirte to checkpoint files?

    Concerning

    Li

    The ttmesg.log will include messages on the number of bytes in a file of control point were read in a certain amount of time, so it is easy to calculate what your reading I/O rate. If you get poor read rates (and therefore take longer to start than desired) TimesTen is embarrassed by this rather than anything that can be tuned in the database. Your speed is about 50GB / 1800 seconds, which is about 30 MB per second. You may want to consider if the I/O reading rate anticipated for your hardware, or if it says improvements are possible. If you are able to locate your files of control point on the SSD or flash, then it is likely to be faster anyway, and then you can take advantage of the parallel control point reads at startup (see the Docs and Note1987463.1 for more details). Readings of parallel to the starting control point are unlikely to help and can actually hinder readings of classical records of spinning.

    TimesTen performs a control point at the end of recovery for logs of transaction that he hasn't needed to purge and bring it to a full consistency. The checkpoint also wrote the DB header, which I think has updated during the process of recovery of fields. There may be other reasons for this, but it was always part of the architecture and recovery process.

    You could also look at how you close the base database or instance. If you ttDaemonAdmin - stop when there are active connections to the database, you could force the database to be invalidated and therefore much more must be done when you start the instance / reload the database. Note 740819.1 is quite useful to the topic of why you should always try to stop a database free of charge, in order to minimize the time to reboot.

  • How to know the execution time

    Hello

    I'm using Oracle 11 g. I want to know the execution time of a query.

    Can someone help me please how to find it.

    And. y at - it a tool that compares the performance of the 2 queries?

    user13044793 wrote:
    Hello

    I'm using Oracle 11 g. I want to know the execution time of a query.

    Can someone help me please how to find it.

    In SQL * more:

    SET TIMING ON

    And. y at - it a tool that compares the performance of the 2 queries?

    In SQL * more:

    SET AUTOTRACE ON

    URS

  • How to shorten the execution time of the NXT (TETRIX &amp; MATRIX toolkit) brick

    Hello

    How to shorten the execution time of the NXT brick?

    (TETRIX & MATRIX toolkit, running time)

    The software is 2012 LabVIEW for LEGO MINDSTORMS

    Thank you.

    Hi 40123157,

    You use the module in an appropriate manner, and there is no simple way to improve the time of loop iteration beyond what you've done. Here are my suggestions:

    (1) the i2c commands take a long time. In your application, it may speed up if you run only move the engine only when the engine speed has changed.

    (2) for this particular example, you do not use the release of the report engine. If this VI does not need to run it can be removed.

    (3) If you need to speed up execution other than that, as a user advanced LabVIEW, you can create a copy of the VI of engines to move and change it as you choose. All you have to to the "DC motors' entry is use cluster to array on the cluster, as shown below. I think you can speed it up by running all the settings before the loop (type sensor and fixed connection configuration), and removing the value of power if you send only the values between-100 and 100.

    (4) drawing on the screen can be slow you down here.

  • How to calculate the execution time of a SCTL in FPGA VI?

    Hello

    Can someone guide me that how to calculate the execution time of a SCTL for an iteration in the FPGA VI?

    Thank you and best regards,

    Rashid

    Hello r,.

    A SCTL will always run in a beat the clock it has been linked to.  So, if you use a 40 MHz clock, this loop will run in 25 ns.  If the code cannot complete in that, or if it requires two graduations of the watch to do the calculation, your code does not compile, then you have the guarantee that this will always be how long it takes this piece of code to run.

  • How to calculate the execution time of a loop?

    Hello

    Can someone guide me that how to calculate the execution time of a loop to iterate?

    Thank you and best regards,

    Rashid

    I hope I have your question! See attached screenshot

  • Some fonts have intercepted showing as available on ID CS3, but at the same time, they ARE show as available

    Some fonts Adobe has stopped showing as available on ID CS3, but at the same time that they show as available on AI CS3. How can I get them appears so I can choose them?

    Win 7

    "First end g try is deleting the tha Adobefnt*.lst files, where * is a two-digit number."

    I'm afraid that I'm not familiar with where and how to...

  • Resource plan in order to limit the execution time

    Hello
    I use 11.1.0.7 database. Can someone guide me how can I create a resource group resource consumers plan and assign them to my user "dev" so that any query that is run by this user shouldn't take more than 10 minutes for execution and must be abandoned if the execution time exceeds 10 minutes.

    Thank you

    Salman
    BEGIN
    dbms_resource_manager.clear_pending_area();
    dbms_resource_manager.create_pending_area();
    dbms_resource_manager.create_consumer_group(consumer_group => 'mytest_group', comment => '', cpu_mth => 'ROUND-ROBIN');
    dbms_resource_manager.submit_pending_area();
    END;
    
    BEGIN
    dbms_resource_manager.clear_pending_area();
    dbms_resource_manager.create_pending_area();
    dbms_resource_manager.create_plan( 'MYTEST_PLAN', '');
    dbms_resource_manager.create_plan_directive(
        plan => 'MYTEST_PLAN',
        group_or_subplan => 'MYTEST_GROUP',
        comment => '',
        cpu_p1 => NULL, cpu_p2 => NULL, cpu_p3 => NULL, cpu_p4 => NULL,
        cpu_p5 => NULL, cpu_p6 => NULL, cpu_p7 => NULL, cpu_p8 => NULL,
        parallel_degree_limit_p1 => NULL,
        active_sess_pool_p1 => NULL,
        queueing_p1 => NULL,
        switch_group => 'KILL_SESSION',
        switch_time => 600,
        switch_estimate => false,
        max_est_exec_time => NULL,
        undo_pool => NULL,
        max_idle_time => NULL,
        max_idle_blocker_time => NULL,
        switch_time_in_call => NULL
    );
    dbms_resource_manager.create_plan_directive(
        plan => 'MYTEST_PLAN',
        group_or_subplan => 'OTHER_GROUPS',
        comment => '',
        cpu_p1 => NULL, cpu_p2 => NULL, cpu_p3 => NULL, cpu_p4 => NULL,
        cpu_p5 => NULL, cpu_p6 => NULL, cpu_p7 => NULL, cpu_p8 => NULL,
        parallel_degree_limit_p1 => NULL,
        active_sess_pool_p1 => NULL,
        queueing_p1 => NULL,
        switch_group => NULL,
        switch_time => NULL,
        switch_estimate => false,
        max_est_exec_time => NULL,
        undo_pool => NULL,
        max_idle_time => NULL,
        max_idle_blocker_time => NULL,
        switch_time_in_call => NULL
    );
    dbms_resource_manager.submit_pending_area();
    END;
    
    BEGIN
    dbms_resource_manager.clear_pending_area();
    dbms_resource_manager.create_pending_area();
    dbms_resource_manager.set_consumer_group_mapping(
        dbms_resource_manager.oracle_user,
        'DEV',
        'MYTEST_GROUP'
    );
    dbms_resource_manager.submit_pending_area();
    END;
    
  • How to know the execution time of query in sql plus

    Hello

    I want to know the duration of execution of query in sql more accompanied by statistics

    I say time is set on;
    Set autotrace on;
    Select * view where usr_id = "abcd";


    If the result is 300 lines it scrolls up until all the rows are retrieved and finally gives me the run time in 40 seconds, or 1 minute... (it is after all records scrolls)

    but when I run it in Toad he gives 350 milli seconds...

    I want to see the execution time in sql how to proceed

    client and database server 11g is g 10

    concerning
    REDA

    In sqlplus you can do set autotrace traces to suppress the display of the selected lines.

    John

  • Is it possible to control the opening and the closing time of a script by an officer being connected?

    Hi Experts,

    We currently use scripts UCCX 7.0 with opening and closing hours of CSQ controlled via defined under the time of day in the script.

    I would like to know if it is possible to control the opening and the closing time of a script based on an agent is connected or not?

    So basically, the office is deemed open when an agent is connected and deemed closed when there is no connected agents regardless of the time.

    If possible, can you kindly point me in the right sense of how implement this corresponds to the script.

    Kind regards

    THERE.

    Hello

    Sure... in short:

    -Use a step "to obtain the statistical report" to see how many officers is connected, or "ready" (your choice) and store that in an int variable

    -If this > 0 then 'goto' your behavior variable open.

    -If it is 0 or - 1, then goto closed.

    Aaron

  • Should I wait until the end of the execution time of the query for the execution plan?

    Hello Experts,

    I want to see the execution plan of the query below. However, it takes more than 3 hours. Should I wait all the time to see the execution plan?

    Note: EXPLAIN PLAN for does not work. (I mean that I do not see the actual line number, etc. with EXPLAIN the PLAN of market)

    You can see the output of the execution plan when I canceled the execution after 1 minute.

    My first question is: what should I do to see the execution plan for queries running out of time time?

    2nd question: when I cancel the query during execution in order to see the execution plan, will I see the specific plan of execution or erroneous values? Because the first execution plan seems inaccurate, what do you think?

    question 3: why EXPLAIN the PLAN for the clause does not work? Also, should I use EXPLAIN the PLAN of the clause to this scenerio? Can I see the result of running for long time without her queries?

    Thnaks for your help.

    Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production

    PL/SQL Release 11.2.0.2.0 - Production

    CORE Production 11.2.0.2.0

    AMT for Linux: Version 11.2.0.2.0 - Production

    NLSRTL Version 11.2.0.2.0 - Production

    Select / * + GATHER_PLAN_STATISTICS NO_PARALLEL * / J.INVOICEACCOUNT, J.INVOICEID, J.INVOICEDATE, (T.LINEAMOUNT + T.LINEAMOUNTTAX) price

    of custinvoicejour j join custinvoicetrans t on

    substr (nls_lower (j.DataAreaId), 1, 7) = substr (nls_lower (t.dataareaid), 1, 7) and

    substr (nls_lower (J.INVOICEID), 1: 25) = substr (nls_lower (t.INVOICEID), 1: 25)

    where

    substr (nls_lower (T.DATAAREAID), 1, 7) = '201' and T.AVBROCHURELINENUM = 29457

    and substr (nls_lower (j.dataareaid), 1, 7) = '201' and

    J.INVOICEACCOUNT in

    (select IT. Drmpos.avtr_seg_cust_campend ACCOUNTNUM this where THIS. CAMPAIGN = '201406' and THIS. SEGMENT_LEVEL in (', 'E'))

    and J.AVAWARDSALES > 190

    and substr (nls_lower (J.AVBILLINGCAMPAIGN), 1, 13) = '201406'

    "and J.INVOICEDATE between ' 04.06.2014' and ' 13.06.2014 ';

    SQL_ID, dznya6x7st0t8, number of children 0

    -------------------------------------

    Select / * + GATHER_PLAN_STATISTICS NO_PARALLEL * / J.INVOICEACCOUNT,.

    J.INVOICEID, J.INVOICEDATE, (T.LINEAMOUNT + T.LINEAMOUNTTAX) price of

    CustInvoiceJour j join custinvoicetrans t on

    substr (nls_lower (j.DataAreaId), 1, 7) =

    substr (nls_lower (t.DataAreaId), 1, 7) and

    = substr (nls_lower (J.INVOICEID), 1: 25)

    substr (nls_lower (t.INVOICEID), 1: 25) where

    substr (nls_lower (T.DATAAREAID), 1, 7) = '201' and T.AVBROCHURELINENUM =

    29457 and substr (nls_lower, (j.dataareaid), 1, 7) = '201' and

    J.INVOICEACCOUNT in (select CE. ACCOUNTNUM of

    drmpos.avtr_seg_cust_campend this where THIS. CAMPAIGN = '201406' and

    IT. SEGMENT_LEVEL in (', 'E')) and J.AVAWARDSALES > 190 and

    substr (nls_lower (J.AVBILLINGCAMPAIGN), 1, 13) = '201406' and

    "J.INVOICEDATE between ' 04.06.2014' and ' 13.06.2014 '.

    Hash value of plan: 2002317666

    --------------------------------------------------------------------------------------------------------------------------------------------------------------

    | ID | Operation | Name                           | Begins | E - lines. A - lines.   A - time | Pads | Bed |  OMem |  1Mem | Used Mem.

    --------------------------------------------------------------------------------------------------------------------------------------------------------------

    |   0 | SELECT STATEMENT |                                |      1.        |      0 | 00:00:00.01 |       0 |      0 |       |       |          |

    |*  1 |  HASH JOIN |                                |      1.   3956.      0 | 00:00:00.01 |       0 |      0 |  2254K |  1061K | 2190K (0) |

    |*  2 |   HASH JOIN |                                |      1.     87.  16676. 00:00:01.64 |     227K |   3552.  3109K |  1106K | 4111K (0) |

    |*  3 |    TABLE ACCESS BY INDEX ROWID | CUSTINVOICEJOUR |      1.   1155 |  31889 | 00:00:01.16 |     223KO |     15.       |       |          |

    |*  4 |     INDEX RANGE SCAN | I_062INVOICEDATEORDERTYPEIDX |      1.   4943 |    134K | 00:00:00.83 |   45440 |      0 |       |       |          |

    |   5.    SIMPLE LIST OF PARTITION.                                |      1.  82360 |    173K | 00:00:00.08 |    3809 |   3537 |       |       |          |

    |*  6 |     TABLE ACCESS FULL | AVTR_SEG_CUST_CAMPEND |      1.  82360 |    173K | 00:00:00.06 |    3809 |   3537 |       |       |          |

    |   7.   TABLE ACCESS BY INDEX ROWID | CUSTINVOICETRANS |      1.   4560 |      0 | 00:00:00.01 |       0 |      0 |       |       |          |

    |*  8 |    INDEX RANGE SCAN | I_064INVLINENUMCAMPAIGNOFPRICE |      1.   4560 |      0 | 00:00:00.01 |       0 |      0 |       |       |          |

    --------------------------------------------------------------------------------------------------------------------------------------------------------------

    Information of predicates (identified by the operation identity card):

    ---------------------------------------------------

    1 - access("J".") "SYS_NC00299$"="T". "' SYS_NC00165$ ' AND SUBSTR (NLS_LOWER ('J'. "" "" REFFACTURE")(, 1, 25) = SUBSTR (NLS_LOWER ("T"." "" "REFFACTURE")(, 1, 25)).

    2 - access("J".") INVOICEACCOUNT '= SYS_OP_C2C ("EC". ". ACCOUNTNUM'))

    3 - filter("J".") AVAWARDSALES"> 190)

    4 - access("J".") SYS_NC00299$ "= U ' 201"AND "J". INVOICEDATE"> = TO_DATE(' 2014-06-04 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND

    "J"." SYS_NC00307$ "= U ' 201406"AND "J". INVOICEDATE"< = TO_DATE (' 2014-06-13 00:00:00 ',' syyyy-mm-dd hh24:mi:ss')))

    filter ((' J'. "INVOICEDATE' > = 'J' AND TO_DATE(' 2014-06-04 00:00:00', 'syyyy-mm-dd hh24:mi:ss') '." " SYS_NC00307$ "= U '201406' AND"

    "J"." INVOICEDATE"< = TO_DATE (' 2014-06-13 00:00:00 ',' syyyy-mm-dd hh24:mi:ss'))))

    6 filter (("CE". "SEGMENT_LEVEL" = A "OR"THIS"." SEGMENT_LEVEL "=" E"))

    8 - access("T".") SYS_NC00165$ "= U ' 201"AND "T". AVBROCHURELINENUM "= 29457)

    filter ("T". ("AVBROCHURELINENUM" = 29457)

    EXPLAIN PLAN FOR

    Select / * + GATHER_PLAN_STATISTICS NO_PARALLEL * / J.INVOICEACCOUNT, J.INVOICEID, J.INVOICEDATE, (T.LINEAMOUNT + T.LINEAMOUNTTAX) price

    of custinvoicejour j join custinvoicetrans t on

    substr (nls_lower (j.DataAreaId), 1, 7) = substr (nls_lower (t.dataareaid), 1, 7) and

    substr (nls_lower (J.INVOICEID), 1: 25) = substr (nls_lower (t.INVOICEID), 1: 25)

    where

    substr (nls_lower (T.DATAAREAID), 1, 7) = '201' and T.AVBROCHURELINENUM = 29457

    and substr (nls_lower (j.dataareaid), 1, 7) = '201' and

    J.INVOICEACCOUNT in

    (select IT. Drmpos.avtr_seg_cust_campend ACCOUNTNUM this where THIS. CAMPAIGN = '201406' and THIS. SEGMENT_LEVEL in (', 'E'))

    and J.AVAWARDSALES > 190

    and substr (nls_lower (J.AVBILLINGCAMPAIGN), 1, 13) = '201406'

    "and J.INVOICEDATE between ' 04.06.2014' and ' 13.06.2014 ';

    SELECT * FROM table (DBMS_XPLAN. DISPLAY_CURSOR);

    SELECT * FROM table (DBMS_XPLAN. DISPLAY_CURSOR ('7h1nbzqjgwsp7', 2));

    SQL_ID, 7h1nbzqjgwsp7, number of children 2

    EXPLAIN PLAN for select / * + GATHER_PLAN_STATISTICS NO_PARALLEL * /.

    J.INVOICEACCOUNT, J.INVOICEID, J.INVOICEDATE,

    (T.LINEAMOUNT + T.LINEAMOUNTTAX) join price j custinvoicejour

    CustInvoiceTrans t on substr (nls_lower (j.dataareaid), 1, 7) =

    substr (nls_lower (t.DataAreaId), 1, 7) and

    = substr (nls_lower (J.INVOICEID), 1: 25)

    substr (nls_lower (t.INVOICEID), 1: 25) where

    substr (nls_lower (T.DATAAREAID), 1, 7) = '201' and T.AVBROCHURELINENUM =

    29457 and substr (nls_lower, (j.dataareaid), 1, 7) = '201' and

    J.INVOICEACCOUNT in (select CE. ACCOUNTNUM of

    drmpos.avtr_seg_cust_campend this where THIS. CAMPAIGN = '201406' and

    IT. SEGMENT_LEVEL in (', 'E')) and J.AVAWARDSALES > 190 and

    substr (nls_lower (J.AVBILLINGCAMPAIGN), 1, 13) = '201406' and

    "J.INVOICEDATE between ' 04.06.2014' and ' 13.06.2014 '.

    NOTE: cannot fetch SQL_ID plan: 7h1nbzqjgwsp7, CHILD_NUMBER: 2

    Check the value of SQL_ID and CHILD_NUMBER;

    It could also be that the plan is no longer in the cursor cache (check v$ sql_plan)

    NightWing wrote:

    Randolf,

    I don't understand. What you hear from the above statement that you mean A-lines and E will be incorrect, but the ratio between them remain the same. Therefore, you can deduct the bad things by comparing the differences.

    Thus, A-lines always give a wrong result for cancellation of queries, isn't it?

    Charlie,

    I think that Martin gave a good explanation. Here's another example that hopefully makes more obvious things:

    17:56:55 SQL >-things go very wrong here with a small buffer cache

    17:56:55 SQL >-T2 lines are badly scattered when you access through T1. FK

    17:56:55 SQL >--

    17:56:55 SQL >-"Small job" approach would have been a good idea

    17:56:55 SQL >-if the estimate of 100 iterations of the loop was correct!

    17:56:55 SQL > select

    17:56:55 (t2.attr2) count 2

    17:56:55 3 of

    17:56:55 4 t1

    17:56:55 5, t2

    17:56:55 6 where

    17:56:55   7  /*------------------*/

    17:56:55 8 trunc (t1.attr1) = 1

    17:56:55 9 and trunc (t1.attr2) = 1

    17:56:55 10 / *-* /.

    17:56:55 11 and t1.fk = t2.id

    17:56:55 12.

    T1

    *

    ERROR on line 4:

    ORA-01013: user has requested the cancellation of the current operation

    Elapsed time: 00:04:58.30

    18:01:53 SQL >

    18:01:53 SQL > @xplan_extended_display_cursor ' ' ' ' 'ALLSTATS LAST + COST.

    18:01:53 SQL > set echo off verify off termout off

    SQL_ID, 353msax56jvvp, number of children 0

    -------------------------------------

    SELECT count (t2.attr2) from t1, t2 where

    / / *-* trunc (t1.attr1) = 1 and

    trunc (T1.attr2) = 1 / *-* / and t1.fk = t2.id

    Hash value of plan: 2900488714

    ------------------------------------------------------------------------------------------------------------------------------------

    | ID | The NEST | DSB | Operation | Name | Begins | E - lines. Cost (% CPU). A - lines.   A - time | Pads | Bed |

    ------------------------------------------------------------------------------------------------------------------------------------

    |   0 |     |   7. SELECT STATEMENT |        |      1.        |  4999 (100) |      0 | 00:00:00.01 |       0 |      0 |

    |   1.   0 |   8 2 GLOBAL TRI |        |      1.      1.            |      0 | 00:00:00.01 |       0 |      0 |

    |   2.   1.   5.   NESTED LOOPS |        |      1.        |            |  57516 | 00:04:58.26 |     173K |  30770 |

    |   3.   2.   3.    NESTED LOOPS |        |      1.    100.  4999 (1) |  57516 | 00:00:21.06 |     116K |   3632.

    |*  4 |   3.   1.     TABLE ACCESS FULL | T1 |      1.    100.  4799 (1) |  57516 | 00:00:00.19 |    1008 |   1087 |

    |*  5 |   3.   2.     INDEX UNIQUE SCAN | T2_IDX |  57516 |      1.     1 (0) |  57516 | 00:00:20.82 |     115K |   2545 |

    |   8 2 2 |   4.    TABLE ACCESS BY INDEX ROWID | T2 |  57516 |      1.     2 (0) |  57516 | 00:04:37.14 |   57516 |  27138 |

    ------------------------------------------------------------------------------------------------------------------------------------

    Information of predicates (identified by the operation identity card):

    ---------------------------------------------------

    4 filter ((TRUNC ('T1'. "ATTR1") = 1 AND TRUNC ('T1'. " ATTR2') = 1))

    5 - access("T1".") FK '= 'T2'.' (ID')

    You say here that I canceled a query after about 5 minutes, and looking at the statistics of content (RowSource) I can already say the following:

    1. the estimation of cardinality of T1 is far - the optimizer estimated 100 lines, but it actually generated more than 57000 lines when the query was cancelled. If this definitely seems like a candidate at the origin of the problems

    2. the query has spent most of the time in search of random table T2

    So while it is true that I don't know final A-lines of this cancelled query information, I can still say a lot of this and begin to deal with the problems identified so far.

    Randolf

  • Help reduce the partial wakelocks

    Hey guys,.

    Recently, I noticed that my phone is wake a lot more then it helps when the screen is off and I'm in stand by mode. attached a few screenshots show what I got. It seems that the first three next annex espeically alarm and synchronization loop are the culprits.

    Someone at - it no indication as to what I can change the settings to reduce these locks specifically wake?

    Thanks in advance for any help.

    There are a few ideas I've read on this particular suite lock. Most agree that it is strongly associated with the grille and gnow. I would check your sync on your calendar options if you use it. Otherwise, you could just turn off. Another thought was that this could be attributed to a music player/blue tooth. Using the power control widget can be an easy way to toggle Bluetooth, GPS, WiFi, etc... on and off quickly. This is particularly useful if you are trying to save the battery. As Quentin stressed XDA can really be helpful when you're investigating specific processes.

Maybe you are looking for

  • hyperlink Google SOLVED calendar: create a new calendar [a Lightning does not appear in the Options]

    I downloaded TB 38, which incorporated the lightning. I want to connect Google Calendar, but say instructions select Lightning tab in Options and then file, add the new calendar. Lightning does not appear in the Options window. I have restarted Thund

  • Need a new keyboard for Satellite P300

    I hope someone can help me with an answer here. The problem is my keyboard. I haveIts broken and I need a new, does anyone know where I can buy this part or where or who can communicate to get a? I have a Toshiba Satellite P-300 with a Norwegian layo

  • Install OfficeJet Pro 8610 on Windows Server 2012

    Hello I'm trying to install the drivers for a Pro OfficeJet 8610 on a system running Windows Server 2012. I installed the drivers from here (after choosing Windows 2012 for the operating system): http://support.hp.com/us-en/drivers/selfservice/HP-Off

  • Last automatic update windows tried to kill my computer...

    The only thing installed yesterday was an update automatic windows vista. I turned off my laptop, and when I got home I tried to start it up. Windows wouldn't start in normal mode, so I booted in safe mode, scanned with my antivirus, antimalware... e

  • Pavilion G6-2270ex: Windows 8 download and prudct key

    Hello I have a pavilion 2270ex G6 notbook I need to know what is the virsion of windows 8, so I can download it and how can I get my prudact key I have download windows8 singel lunguge but it gives me the key prudact and win8proand interprise