How to get a update statement faster?

Hello together,

I have an update statement on a view in line composed of two tables A and B.

He works and updates the table column has a value of the corresponding entry in the table B.

This 1,800,000 update records in table A are updated.

The table, there are a few clues.

If I drop the update indexes is much faster (instead of 2,5 hours, that just 0.5 hour).
But the time needed to re-create the index is much more that I saved thanks to the removal of the index. (4 hours!)

So I do not remove the indexes and perform the update.

My update statement runs in mode RBO a uses the FULL (A) - tip to prevent oracle to use the index when you create the inline view (connecting A and B).

It made a difference for the execution of the update statement if it runs in either CBO or RBO mode?

What can I do to get faster update statement?

Thank you very much in advance for any help.

Hartmut cordially

You can probably tune.

Here's a guide that should be useful...

When your query takes too long...

Tags: Database

Similar Questions

  • How to get an update for Gigabyte 77TA-UD 3/F2

    Original title: Bios updates

    Can someone advise me how to get an update if there is one for: Gigabyte 77TA-UD 3 / F2

    Hello

    This isn't a correct model number.

    Maybe it's on this list.

    http://www.gigabyte.com/support-Downloads/Download-Center.aspx?kW=77&CK

    I hope this helps.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • How to get the update?

    Please tell me HOW TO GET THE UPDATE! I'm pulling out my hair on the Adobe website doing what you can't do. (Sorry I can't help with that.) I have CS5 on Mac OS X and have received a document clearly created in CS5.5. But I can't find the update/update/download on the Adobe site. Thanks for any help.

    If you do not have the upgrade (updates are different and cost nothing... upgrades, you buy, but Adobe does not sell older versions) you may not use, if you could install the trial version which is good for 30 days.

    If you have the upgrade, you can download through one of the following links.  If you want the trial then use the other.

    CS5.5 - http://helpx.adobe.com/creative-suite/kb/cs5-5-product-downloads.html

    You can download the demo version of the software through the page linked below and then use your current serial number to activate it.

    Don't forget to follow the steps described in the Note: very important Instructions in the section on the pages of this site download and have cookies turned on in your browser, otherwise the download will not work correctly.

    CS5.5: http://prodesigntools.com/adobe-cs5-5-direct-download-links.html

  • How to tune this update statement?

    Hello

    I have to solve the following task:

    Update all rows in table A, which has an appropriate row in table B and save what you have done in a table of newspaper.
    It is possible that there are several assembly lines in the table has a row in table B.

    My first approach is a loop above the table B and do an update of table A for each entry in table B.
    It works and looks like this:

    Table A:
    Number of PK (this is the primary key for this table)
    The KEY number

    Table B:
    Number KEY_OLD
    Number KEY_NEW

    Table of newspaper:
    Number of PK
    Number KEY_OLD
    Number KEY_NEW
    declare
      TYPE PK_TAB_TYPE IS TABLE OF number INDEX BY BINARY_INTEGER;
      v_tab_PK       PK_TAB_TYPE;
      v_empty_tab_PK PK_TAB_TYPE;
    begin
      for v_rec in (select * from table_B) loop
        v_tab_PK := v_empty_tab_PK;  /* clearing the array */
        update table_A
        set    KEY = v_rec.KEY_NEW
        where (KEY = v_rec.KEY_OLD)
        returning PK bulk collect into v_tab_PK;
        if (v_tab_PK.count > 0) then
          for i in v_tab_PK.first..v_tab_PK.last loop
            insert into TMP_TAB_LOG(PK, KEY_OLD, KEY_NEW)
              values (v_tab_PK(i), v_rec.KEY_OLD, v_rec.KEY_NEW);
          end loop;
        end if;
      end loop;
    end;
    Given that the table B can have up to 500,000 entries (and table A has more entries) this solution causes a lot of update statements.

    I'm therefore looking for a solution that offers better performance.

    My second approach was using a correlated update and looks like this:
    declare
      TYPE PK_TAB_TYPE IS TABLE OF number INDEX BY BINARY_INTEGER;
      v_tab_PK            PK_TAB_TYPE;
      v_empty_tab_PK PK_TAB_TYPE;
      v_tab_NewKey    PK_TAB_TYPE;
    begin
      v_tab_PK         := v_empty_tab_PK;  /* clear the arrays */
      v_tab_NewKey := v_empty_tab_PK;
      update table_A a
      set    KEY = (select KEY_NEW from table_B where (KEY_OLD = a.KEY))
      where exists (select 'x' as OK
                         from   table_B
                         where (KEY_OLD = a.KEY)
                        )
      returning PK, KEY bulk collect into v_tab_PK, v_tab_NewKey;
      if (v_tab_PK.count > 0) then
        for i in v_tab_PK.first..v_tab_PK.last loop
          insert into TMP_TAB_LOG_DUB(PK, KEY_OLD, KEY_NEW)
            values (v_tab_PK(i), null, v_tab_NewKey(i));
        end loop;
      end if;
    end;
    Now, I found that a single update.
    The only thing missing in this second approach is the old KEY before the update in the log table.
    But I have no idea how to do to get the old value.
    Is it possible to change this second approach to get the old value of the KEY before the update to write it in the table of the newspaper?

    And now I need your help:
    What is the best way to get a high-performance solution for my task?

    Any help is appreciated.

    Hartmut cordially

    Have you tried my advice to make a UNIQUE on table_B (KEY_OLD) index?

    Oracle wants to make sure that the update statement are left with two different values for the update of a line:
    The keys must be preserved in the online posting.

  • How to optimize the update statement so that the query is reading the same table?

    Hi all

    I have a process with the following UPDATE statement:

    Sales_val update

    SET ship_date =)
    Select max (hist.ship_date)

    FROM sales_hist hist

    WHERE hist. X_ID = A.X_ID

    AND hist. X_VAL = A.X_VAL)

    ) WHERE EXISTS (select * from sales_hist hist where )

    WHERE hist. X_ID = A.X_ID

    AND hist. X_VAL = A.X_VAL

    )

    sales_val - 50 lines mln (unique index)

    sales_hist - 20 mln ranks (unique index)

    I met many problems with waits and locks - how to optimize to avoid locks using the parameters of tables or changes of the declaration? or maybe is there another way to do optimization ?

    Kind regards

    Bolo

    Thank you for that. Collect in bulk Unfortunatelly + FORALL does not work with the types in 10g - solution is to use the FOR loop and is not as effective as FORALL in many cases. I do still some tests to solve this problem - I'll put you once it's done.

    EDIT: hash partitioning + fusion - 3-5 minutes (time), so for now it's the solution to the problem. Thank you all for the great discussion!

  • How to get performance counter stats for virtual machine?

    Hi again,

    I managed to connect to the web service using VI SDK 2.5 and I can't what are virtual machines installed on the host system. I want to get the VMS performance counter values. How to get values of virtual machines performance counter?

    try {

    service = util.getConnection () .getService ();

    SIC is util.getConnection () .getServiceContent ();.

    perfMgr = sic.getPerfManager ();

    Utils VMUtils = new VMUtils (util);

    The list of virtual machines on a host

    ArrayList vmList = utils.getVMs (null,null,null,null,null, arg,new String [1] [2]);

    I havef(vmList! = null) {}

    System. .println ("Host a" + vmList.size () + "virtual machines");

    System. the.println ("name vm" + vmList.get (0) m:System.NET.SocketAddress.ToString () + "vm 2" + vmList.get (1) m:System.NET.SocketAddress.ToString ());

    }

    }

    catch (Exception ex) {

    ex.printStackTrace ();

    }

    Clues?

    ! http://communities.VMware.com/images/emoticons/sad.gif !

    Hello

    In order to obtain the performance counter for a managed entity, you must have following:

    1. get the managed object to the PerformanceManager object reference

    2 get the ProviderSummary object for this entity. It also helps determine if the current or summary statistics are supported.

    3. get performance metrics available for the entity. In a given time interval, the statistics will be available for these measures.

    4. the performance statistics for the entity desired metrics extracted from the step above queries

    5 examine the returned data object to get the statistics.

    Attached, is an example of Java, which takes the name of the virtual machine, run the steps above and print the available counters and their stats. You can take the help of this example and can improve to get statistics for all the virtual machines in your host application.

    Hope this information is useful.

    -Neha

  • How to get the current state of the son process

    Hello

    If I know that the instance id of a child process.
    How can I get the current state of the child (e.g., completed, running, etc.) process in the code "PBL"?

    Thank you in advance.

    Hello

    Here's a way to display the status of children sub-process engendered by a process parent process creation activity. In this sense, the process id of the subprocedure is "ChildProcess. The id of the activity of creating processes in the parent process that causes the work item instance in the child process called 'SpawnChildren '. This logic is performed from inside the process parent in an activity downstream process creation activity, called "SpawnChildren".

    Display statements have been added just to see you return values (do) their leash not when going into production.

    display "Children: " + children + "\nKeys: " + children.keys + "\nLength: " + length(children) +
    "\nInstance id of child: [" + children["SpawnChildren"] + "]"
    
    if children["SpawnChildren"] = null or children["SpawnChildren"] = "" then
         display "Child is completed"
    else
    
         bp as BusinessProcess
    
         connectTo bp
                         using url = Fuego.Server.directoryURL,
                             user = "test",
                             password = "test",
                             process = "/ChildProcess"
    
         instance as Fuego.Papi.Instance
         instance = getInstance(bp, instance : children["SpawnChildren"])
         logMessage "run Instance: " + instance.id
                          using severity = DEBUG
    
         display "Status: " + instance.status + "; inside the child process in the activity: " + instance.activityName
    
         disconnectFrom bp
    end
    

    I downloaded the project I used this in to http://www.4shared.com/file/130890113/2d825960/ChildrenOfaParent.html.

    Hope this helps,
    Dan

  • How to get the updated values of the loops while they are running

    Hello

    I am trouble with a very basic problem, how to access the updated values of the "loop FOR" during operation?  Basically, the VI I is currently working on two sub vis calls each sub VI has a loop for, and the two screws may or may not work for the same number of iterations. My goal is to read the values in each terminal within the loop of two sub VIs, in primary VI. I tried to do this using Global Variables, but in main VI it will display only the last iteration of the two value sub live. Could someone please tell me whrere I go wrong? Is there any other/better way to do this.

    I appreciate any input on this issue.  

    Pass a reference of the main VI control to the Sub screws.  See attached example.

  • has had to use the recovery disk to restore all applications, including windows xp... trying to get windows update but get the error message. any idea on how to get the updates

    Drivers for computer laptop all corrupt had to reformat and do recovery disk.  lost all updates to windows xp.  try to get the updates, it will scan I get this message... can someone help.

     

    [Error number: 0 x 80244019]
    The website has encountered a problem and cannot display the page you are trying to view. The options provided below may help you solve the problem.

    For self-help options:

    To support options:

    I am pleased to have been of assistance.

    Tricky

  • How to get the current state of network technology (for example, 3G, LTE, etc.)?

    Hi all

    Anyone know how to get network technology?

    I have check the link below but not many result https://developer.blackberry.com/native/reference/cascades/bb__device__cellularnetworkinfo.html

    Try

    CellularNetworkInfo networkinfo;

    networkinfo. Technology();

  • How to get the updated esx version?

    Hello

    It's easy to get the esx version & build number.

    I use esxupate application command in the service console to get the updated version.

    But is it possible to get the number of minor version (e.g. Update1, Update2) except esxupate query service console command

    It should work

    http://ICT-freak.nl/2009/06/09/PowerCLI-get-ESX-version-info/

  • How to get an update failed to try again?

    Windows Vista Edition using Home Premium 64-Bit.

    I have a few updates failed in my story, I can view the details and see what I need to do to solve the relevant problems, but advice then usually ends with a statement like - then "try again to install the latest updates for Office products.  But how you do it.  A new analysis with Windows Update tells me everything is fine, and the only options of my story I have are "Show details" or "Details".  I don't see anywhere allows me to try to install the new update failure.

    Hello

    Please use the Windows Vista Forums.

    1 are you facing the question with the Office updates?

    2. do you get an error message or an error code?

    Follow the article below to reset Windows Update components. He will re-record the BITS files and Windows Update files and rename the software distribution folder.

    To reset the Windows Update components automatically, click the fix it button or link. Click on run in the file download dialog box and follow the steps described in the fix it Wizard.

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

    Make sure that you have all the Antivirus, security software, and 3rd-party firewall disabled and restart your Windows Update. Activate once you are finished with the installation of the updates.

    How to resolve problems connecting to Windows Update or Microsoft Update

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

    You can also open Internet Explorer, click Tools, and click Windows Update.

    You will be directed to the windows update site according to your version of IE.

    Otherwise, click the link below

    Windows Update

    http://update.Microsoft.com/windowsupdate/v6/default.aspx?ln=en-us

    Microsoft Update Web site

    http://update.Microsoft.com/microsoftupdate/v6/default.aspx?ln=en-us

    Let us know how it works.

    Kind regards
    Technical support of Microsoft-yama.
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • I'm trying to update my phone.  The only list update is iOS 9.2.1.  When I try to update, it tells me that I can't because I am not connected to the internet.  How can get the update on my phone.

    I'm trying to update my phone.  The only available update is iOS 9.2.1.  When I try to upgrade, it tells me that I can't upgrade because I am is no longer connected to the internet.  How can I upgrade my phone?

    Connect to the internet.

  • How to get an update to stop updating? Updated 5 times. Maybe it should?

    I have the same update, updated 5 times in 2 days. How to stop? Alternatively, do I keep leaving? Most of the time, even if I put it in, the system stops after the update, and it works all night.

    See the article after some troubleshooting for your question:

    http://support.Microsoft.com/kb/910339/en-us >

    Please let us know if it did or did not help to solve your problem.

    UTC/GMT is 00:22, Sunday, June 3, 2012

  • How to get the update since viewcriteria table?

    Hello

    My version of jdev is 11.1.1.2.3

    I created a test to view based on two tables by using a common attribute in both tables,

    I dragged this viewcriteria as datacontrols viewcriteria named perticular instance table.

    My problem is that I have to update my table (upgrade mode)

    can someone help me please...

    Thank you

    As I said before, if you drop a vc as a query with table, the table will be read-only. Drop it as a query and after the query Panel is generated drop the VO of the Victoria Cross was built on table, and then select do not read only to make it editable. Then you will need to make the change in the Panel of the query and set the property resultComponentId to the id of the table that you fell forward. Then you get the Panel request with editable table.

    Timo

Maybe you are looking for

  • Re: Need drivers for Satellite M40x

    Hello I have a big problem... I can't find drivers for my Toshiba Satellite M40x 267 (PSM4XE-03401UFR).Please I need these drivers (for all... mother board driver etc. and especially for the display). Thank you, if it's possible a mail to eugenseverl

  • My Skype number does not appear as my purchased number at the front desk phones.

    When I shout, my purchased number does not appear in receiving lines. Can I receive calls on my purchased number and call out the purchased number but when I call the number purchased the Skype number being received is not mine. I can't find an answe

  • Re: Satellite A300 - guarantee for the new view

    Hi, I need help I bought a Satelite A300 and I subscribed for LITTLE MATTERS what WHO GUARANTEE, now my screen its broken, they told me that I appiled for anything, but never confirmed the email but I never received the email. Please help me. Thank y

  • How to create the recovery disk from image on another laptop?

    Hi guys,. I have a laptop where the recovery partition was reformatted somehow.Although I used partition recovery software to recover the original partition, the original system partition containing the Creator program of recovery was also missing. I

  • Linksys Smart Wi - Fi is vulnerable to the heart bleed OpenSSL

    I'm curious to know if the Linksys Smart Wi - Fi site or routers are vulnerable to the exploit of heart bleed OpenSSL? http://SiliconANGLE.com/blog/2014/04/08/OpenSSL-heartbleed-vulnerability-may-affect-millions/ BTW: Change your passwords...