Which one is faster loading type between Insert/Update and Update/Insert?

Hi Gurus,
Could anyone tell me which loading type faster between Insert/Update and Update/Insert?Any resolution and document reference would be grateful.
Regards,
Joni

910575 wrote:
Thanks Purvesh for your quick response..
Yes you are right, we have to prefer sql rather than plsql. But if i have 1 lakh records to be inserted then my insert into select will do insert one by one that mean context switching is more to server i.e 1 lakh.
If i use BULK COLLECT+ FORALL then in a single switch the lakh records will be inserted right?
I agree that when we have less number of records to insert we can prefer insert into select, if we have huge data then why not FORALL ?
You have just tested for 107 records, but in huge data it is different right?
Thanks,
VinodYou've misunderstood how it works, I think. When you do the "insert into ... select", Oracle works out what rows need to be inserted and does them in one fell swoop. That's 2 context switches only, with the bulk of the work being done by the SQL engine.
When you do the BULK COLLECT + FORALL, you're telling Oracle to first identify the rows (that's two context switches straight off; one from PL/SQL to SQL and then back to PL/SQL again), load them into a collection, then loop through the collection and insert the records X rows at a time (which could be all records or whatever you set as the LIMIT on the FORALL) (again, with the context switching between PL/SQL and SQL and back again through each loop).
Which one sounds like it does the least amount of work? Not the BULK COLLECT, right?

Similar Messages

  • Load Type as INSERT/UPDATE ?

    Hi,
    I would like to use load type INSERT/UPDATE. So would it create any performance issue when compareted to the load type as INSERT. Is it considerable?
    Thank you,
    Regards,
    Gowtham Sen.

    Hi
    That depends completely on the data you are reading in (your source) and how often the row exists in the target table. The idea to choose between INSERT/UPDATE and UPDATE/INSERT is if you know that most of the data is new you choose the first one but if most of the data already exists you choose the latter. But the code generated in the end will be a MERGE statement so it won't matter much.
    To make sure you get the best performance in case your ETL will have to to many updates as well as inserts is to make sure that the matching criteria on the target is indexed.
    Borkur

  • Loading Type: DELETE/INSERT

    Hi,
    OWB 9.2.0.x
    I need to develop logic wherein the target rows would be deleted based on a condition (column value already present), and then insert new rows.
    The DELETE/INSERT Loading Type on Target is just doing a blanket delete where criteria matches and inserting fresh rows, instead of deleting just those rows that match the criteria.
    An alternative was to have a lookup, and take that to a splitter, and send matching row to a TARGET with Loading Type set to DELETE, and other set to another copy of the TARGET with Loading Type set to INSERT.
    This also does not work properly, and behaves inconsistently.
    Any help on this would be much appreciated.
    Regards
    Jojo

    To put in an example:
    We have to delete the records matching the input(staging), and then reinsert them.
    That is input records will be like
    1 a
    1 c
    5 a
    5 b
    3 a
    Target may have something like
    1 a
    1 b
    1 c
    2 a
    2 b
    3 a
    All records with first field as 1, 2 or 3 in staging should be deleted from target, and then the full staging gets inserted.
    Final target would then become
    1 a
    1 c
    2 a
    2 b
    5 a
    5 b
    3 a
    An alternate solution that comes to mind is
    Implement a delete mapping, and then do the inserts. But this would require two passes through the staging data.
    Regards
    Jojo Thomas

  • AP- Why exchange rate type between Post invoice and Post payment is differe

    AP- Why exchange rate type between Post invoice and Post payment is different ?
    Hello,
    I have question
    when post AP invoice , document type KR
    document date = 11.12.2009
    posting date = 31.12.2009
    entry date = 05.01.2010
    this document using exchange rate type B (standard translation at bank selling rate) on 31.12.2009 (use posting date )
    but when post payment for above document,document type ZP
    document date = 25.06.2010
    posting date = 25.06.2010
    entry date = 24.06.2010
    this document using exchange rate type M (standard translation at average rate) on 23.06.2010
    please answer
    why do post invoice and post payment use different exchange rate type?
    and why at payment donot use posting date for get exchange rate ?

    Nanas,
    Sorry if im not  being clear...
    My point is: the difference rates customization for payments is done at FBZP.
    At Paying Company Codes, you have 4 flags for exchange rates differentes.
    At Control Data look:
    *Do not Post any Exchange Rate Differences:
    If the indicator is not set, the difference between the exchange rate at the time of posting and the exchange rate at the time of payment is determined for items which are posted in foreign currency. The payment program uses the translation rate in the currency table in the system for this purpose.
    *No Exchange Rate Differences for Partial Payments:
    Has the effect that the payment program for partial payments (requests for payment using transaction F-59) does not post exchange rate differences.
    *Processing of Bill of Exchange Payments:
    *Separate Payment for each Payment Reference
    Regards
    Bruno

  • Does any one knows how to differentiate between outgoing mail and incoming

    Hi,
    I'm using the IV webclient inbox.
    Does any one knows how to differentiate between outgoing mail and incoming mail in the result list ?

    Hi,
    I'm using the IV webclient inbox.
    Does any one knows how to differentiate between outgoing mail and incoming mail in the result list ?

  • Which one is faster to move an internal table to other?

    Hi Gurus,
    Suppose I've two internal tables with same structures. Which one of the following statement works faster to move one table to another?
    1 . APPEND LINES OF ITAB TO JTAB.
    2 . JTAB[] = ITAB[].
    kindly help me out.

    hello,
       These two stmts are NOT the same !
    Appending does appending, adding to the existing ones
    where as the other one simply copies the content  .
    Assuming there are no prior entries involved, copying
    itab1[] = itab2[] is faster .
    ~ laxmi
    pls reward helpful answers

  • Which one is fast?

    public class Point2D {
        private int x, y;
        public Point2D() { x = 0; y = 0; }
        //public Point2D() { this(0,0); }
        public Point2D(int x, int y) {this.x = x; this.y = y;}
        public int getX() {return x;}
        public int getY() {return y;}
        public void setX(int x) {this.x = x;}
        public void setY(int y) {this.y = y;}
    }the constructors below both work:
    public Point2D() { x = 0; y = 0; }
    //public Point2D() { this(0,0); }
    which one should be more efficient?
    thanks

    A good compiler would generate the same code for both
    forms of no argument constructor.
    public class b {
    int x,y;
    public b(int x,int y) { this.x=x; this.y=y;}
    public b(int x) { this(x,0); }
    public b() { x=0; y=0;} //
    public static void main(String args[] ) {
         b w0,w1;
    }With SUN JDK 1.4.2_03:
    javap -private -c b
    Compiled from "b.java"
    public class b extends java.lang.Object{
    int x;
    int y;
    public b(int,int);
      Code:
       0:     aload_0
       1:     invokespecial     #1; //Method java/lang/Object."<init>":()V
       4:     aload_0
       5:     iload_1
       6:     putfield     #2; //Field x:I
       9:     aload_0
       10:     iload_2
       11:     putfield     #3; //Field y:I
       14:     return
    public b(int);
      Code:
       0:     aload_0
       1:     iload_1
       2:     iconst_0
       3:     invokespecial     #4; //Method "<init>":(II)V
       6:     return
    public b();
      Code:
       0:     aload_0
       1:     invokespecial     #1; //Method java/lang/Object."<init>":()V
       4:     aload_0
       5:     iconst_0
       6:     putfield     #2; //Field x:I
       9:     aload_0
       10:     iconst_0
       11:     putfield     #3; //Field y:I
       14:     return
    public static void main(java.lang.String[]);
      Code:
       0:     return
    }

  • Which one pricing procedure&pricing type take effect?

    I assign the different pricing procedures to the master data FF.and document type A respectively.
    And the procedures contain multiple pricing types.
    When I entry a sales document with document type A and master data FF.
    which procedure and condition type would take effect? or they take place together?
    thanks

    Dear Humility,
    which procedure and condition type would take effect? or they take place together?
    The pricing procedure will get determine based on these combination
    Sales areaDocument pricing procedure of A document typeCustomer pricing procedure of FF--->Pricing procedure.
    So what is the procedure you have assigned for this combination in OVKK transaction same pricing procedure will take effect.
    What are all the condition types maintained in that procedure all will take effect.But values will come based on the settings you have done for those condition types.
    I hope this will clear for you,
    Regards,
    Murali.

  • Load balancing between application server and database

    Hi,
    is there any load balancing between the application server and the database? Consider we have a single instance of an application server that sends database queries from different clients to the database. Are the requests queued in some way at the application server, allowing to control the flow of the queries (e.g. queries from "more important" clients might be sent with a higher priority)?
    Thanks for your help!

    Hi Victor/Jim/Volker,
    Thanks a lot for all the responses..
    Just wanted to let you guys know that my installation finished successfully.
    The thing which confused me was that my Qtime, Qdate and everything else was showing correct values..
    Well, my problem I set the environmental variable PASE_TZ to the EST time zone on a SYS level using WRKENVVAR>F4>SYS and added the variable. I logged off and the sidofr logged off, but one user which should have logged off and didn't was the "SAPINST"(my installation user) which was logged in the subsystem TMKSVR00.
    Even when I had closed the SAPINST installlation program, the user doesn't log off...it just sits there until and unless u shut him out of the system using the option 4 on wrkactjob for ending the JOB(SAPINST logged in the system below the TMKSVR00 subsystem)
    So since the SAPISNT user never logged of, his environmental variables were not initilized properly, even after the changes...
    This thought came to me almost after a 6 hours of wasting my time searching for notes here and there...
    I think when u end/stop the install in SAPINST, the SAPINST user should log off the AS400 system, but I have noticed, it never does...although when u restart the installation, if u have noticed it shows you the log on for the SAPINST user in the TMKSVR screen...
    Its kind of buggy, I would say...
    I have noticed, that even when I log on to AS400 from home or from a remote PC using Emulator, it shows me logged in the subsystem and even after i have logged of, it still shows me there...
    Anyway, thanks a lot guys...for all your responses..
    Just wanted to let you know all.
    Thanks
    Abhi

  • Which one of these two drives would you recommend and why

    Hello,
    I am planning on adding an external HD to be used with Time Machine.
    I was looking at a WD My Book Studio LX 2 TB FireWire 800, then I saw another WD - 2 TB My Book Studio II.
    While the first look very nice and sleek with its aluminum case, and judging by WD website, offers more features, the second one seem to be faster (7200 rpm vs 5400 rpm) and it also offers 5 years of warranty compared with only 3.
    I am not a computer geek, therefore I am throwing the question here: which one should I buy and why? Do I really need that RAID technology?
    Thanks in advance for your answers.
    Regards,
    Loerincz

    IMHO, you want neither. I've heard enough bad things about WD drives on these forums that I wouldn't touch them with a ten-foot pole. Try [Other World Computing|http://www.macsales.com>. They've got quality stuff.
    As for RAID, you probably don't need that. RAID is a way to make multiple separate drives act like one larger drive, but that's major overkill for most home backup needs.

  • Which one is the best way to collect config and performance details in azure

    Hi ,
    I want to collect the information of both configuration and performance of cloud, virtual machine and web role .I am going to collect all these details using
    java.  so Please suggest which one is the best way. 
    1) REST API
    2) Azure SDK for java
    Regards
    Rathidevi
    rathidevi

    Hi,
    There are four main tasks to use Azure Diagnostics:
    Setup WAD
    Configuring data collection
    Instrumenting your code
    Viewing data
    The original Azure SDK 1.0 included functionality to collect diagnostics and store them in Azure storage collectively known as Azure Diagnostics (WAD). This software, built upon the Event Tracing for Windows (ETW) framework, fulfills two design requirements
    introduced by Azure scale-out architecture:
    Save diagnostic data that would be lost during a reimaging of the instance..
    Provide a central repository for diagnostics from multiple instances.
    After including Azure Diagnostics in the role (ServiceConfiguration.cscfg and ServiceDefinition.csdef), WAD collects diagnostic data from all the instances of that particular role. The diagnostic data can be used for debugging and troubleshooting, measuring
    performance, monitoring resource usage, traffic analysis and capacity planning, and auditing. Transfers to Azure storage account for persistence can either be scheduled or on-demand.
    To know more about Azure Diagnostics, please refer to the below article ( Section : Designing More Supportable Azure Services > Azure Diagnostics )
    https://msdn.microsoft.com/en-us/library/azure/hh771389.aspx?f=255&MSPPError=-2147217396
    https://msdn.microsoft.com/en-us/library/azure/dn186185.aspx
    https://msdn.microsoft.com/en-us/library/azure/gg433048.aspx
    Hope this helps !
    Regards,
    Sowmya

  • All my apps (even App Store!) disappeared (iPad 1 upgrade to ios5).  Most apps show up on laptop but app sync is greyed (no restrictions). I have 2 accounts due to apple email req, but I've loaded apps between my iPhone and iPad before.  iPad now zero.

    I postponed upgrading my iPad 1 because iTunes told me it wasn't homed on my computer.  I tried it on my other computers, all with the same message.  I finally upgraded it from my MacBook after appearing to sync the apps.  When it finished (5.01), all of my apps and data were gone, as well as several stock apps including the App Store itself (although it appears in settings).  Since what seems to be all of my apps (iPad and iPhone) appear in iTunes on my Windows portable, I tried resyncing the iPad there (as its new home).  Restrictions are off, there is plenty of memory, but the app sync screen and app list are greyed out.  Nothing will download to my iPad.
    My original Apple account is under my name.  However, I had to create a second account at some point in the past due to Apple's requirement that the name be an email address, which is my name (identical) at mac.com.  Since both are in my name, it didn't originally occur to me that Apple would consider them as different accounts.  This may have a bearing on what is going on, but I don't think so since I have exchanged apps between iPad and iPhone before.  To check whether this might be related, I tried to change the account name on the iPad (removing @mac.com).  I received a message that if I did so I would have to wait for 90 days to download my apps, which is not satisfactory since my grandchildren and I use the iPad regularly.  And I need it for work.
    I'm assuming that if I could reactivate the App Store I could redownload my purchased apps.  Better yet would be merging both "accounts" into one, if that is the source of the issue.  I appreciate your help and suggestions.
    Steve

    All I had to do was complain.  I synced my iPhone to the Windows machine, checked the other account at iTunes prompting (where no apps had shown up previously), reconnected the iPad, and 140 apps downloaded including the App Store.  I have no idea why.

  • I cannot seem to find out if I have one or two accounts by mistake?with the Guardian, my  subscription seems to have doubled. I stopped it now I cant find out  which one I had. I wanted the Guardiain and the Observer combined but on  the ipad and mac.

    Looking at my apple or itunes account it read two different dates for collecting my Guardian and Observer subscription. Being wowrrried I was paying for it twice I cancelled it. Now  how do i find out if I was over impetius or should just start again?Also can one get this double subscription to be on both the Mac and on the ipad?

    Looking at my apple or itunes account it read two different dates for collecting my Guardian and Observer subscription. Being wowrrried I was paying for it twice I cancelled it. Now  how do i find out if I was over impetius or should just start again?Also can one get this double subscription to be on both the Mac and on the ipad?

  • In which table is the relation stored between purchasing group and user?

    it seems to be that a purchasing group is related to an user in the client system i am working for now. I cannot find these relations in HR.
    In which HRPxxxx is the relation stored? With which transaction can i change the relationship?
    thanks

    Hello Theo,
    please, clarify your problem.
    How do you know concerned user is linked to such purchasing group?
    User assignement in the organizational structure is maintained with PPOMA_BBP transaction.
    Regards.
    Laurent.

  • Is there any way to fill long loading gap between splash screen and application home page?

    Recently I have developed my first MAF app. This app is with basic design with some page re-directions, no web services/java script is used but when I start app first time then there is a long white gap after splash screen till loading application home page. Is there any way to eliminate this gap?

    User, tell us your jdev version, please!
    Check the hints given in this thread Increase Adf Application Load Time
    When a page loads all iterators are executed whihc can take some time if you have many of them on the page retrieving many rows. So what is on your home page?
    Timo

Maybe you are looking for