Long running mapping when using Mapping Transformations

Hi,
I have a source table with 8,000 records which I would like to merge using the update/insert operator into my target table. This simple operation takes 15 sec which I am very happy with. The problem I have is when I try to call a series of Functions using Mapping Transformations - when I do this the performance of the mapping is dire - it now takes longer than 40min!!!
The strange thing is that when I generate the intermediate result and run the code (not including the Merge in to my Target table) in TOAD, the results come back quickly? So I am not sure if there is a problem with the fact that I am using Mapping Transformations or if I am using a Merge on the Target Table...
I have taken off Parrallel hints on the target table and applied the relevant indexes.
I am really lost and any help would be most appreciated.
Regards
Mitesh

If you could let us know what kind of functions you are using? I had experienced the same problem while calling a function using a Mapping Transformation. The functions used a cursor and for every source record these function were getting called and the cursor was opened and closed, which caused a performance bottleneck.
Better write the functions with direct SQLs and no cursors, if possible or use a temporary table, joiner operator or look up operator to achieve the task.
This should reduce the execution time considerably.
Regards
Arnab

Similar Messages

  • On a Mac v10.6.6 Firefox v3.6.13 Right click on Google Map does not bring up the drop down box, with the first item being directions from here, the right click does work on Google map when using Safari

    On a Mac v10.6.6 Firefox v3.6.13 Right click on Google Map does not bring up the drop down box, with the first item being "directions from here", the right click does work on Google map when using Safari

    Your above posted system details show outdated plugin(s) with known security and stability risks.
    *Shockwave Flash 9.0 r999
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/
    In Firefox 3.6 and later versions you need the Next-Generation Java™ Plug-In present in Java 6 U10 and later (Linux: libnpjp2.so; Windows: npjp2.dll).
    http://java.com/en/download/faq/firefox_newplugin.xml
    See also http://java.sun.com/javase/6/webnotes/install/jre/manual-plugin-install-linux.html

  • After I installed the recent Apple security patch, I can no longer save PDFs when using Safari. And Firefox no longer can open website PDFs. Any suggestions?

    After I installed the recent Apple security patch, I can no longer save PDFs when using Safari. And Firefox no longer can open website PDFs. Any suggestions?

    Dansyacht wrote:
    If the previous Safari suggestion doesn't work try the following:
    In Finder, go to Macintosh HD/Library/Internet Plug-ins and move AdobePDFViewerNPAPI.plugin to the Disabled Plug-ins Folder.  Restart Safari.  If this works you may just want to delete that FUBAR plug-in.
    Thanks.  This was the solution for me.
    Message was edited by: tvdowntown

  • Query runs slower when using variables & faster when using hard coded value

    Hi,
    My query runs slower when i use variables but it runs faster when i use hard coded values. Why it is behaving like this ?
    My query is in cursor definition in a procedure. Procedure runs faster when using hard coded valus and slower when using variables.
    Can anybody help me out there?
    Thanks in advance.

    Hi,
    Thanks for ur reply.
    here is my code with Variables:
    Procedure populateCountryTrafficDetails(pWeekStartDate IN Date , pCountry IN d_geography.country_code%TYPE) is
    startdate date;
    AR_OrgId number(10);
    Cursor cTraffic is
    Select
              l.actual_date, nvl(o.city||o.zipcode,'Undefined') Site,
              g.country_code,d.customer_name, d.customer_number,t.contrno bcn,
              nvl(r.dest_level3,'Undefined'),
              Decode(p.Product_code,'820','821','821','821','801') Product_Code ,
              Decode(p.Product_code,'820','Colt Voice Connect','821','Colt Voice Connect','Colt Voice Line') DProduct,
              sum(f.duration),
              sum(f.debamount_eur)
              from d_calendar_date l,
              d_geography g,
              d_customer d, d_contract t, d_subscriber s,
              d_retail_dest r, d_product p,
              CPS_ORDER_DETAILS o,
              f_retail_revenue f
              where
              l.date_key = f.call_date_key and
              g.geography_key = f.geography_key and
              r.dest_key = f.dest_key and
              p.product_key = f.product_key and
              --c.customer_key = f.customer_key and
              d.customer_key = f.customer_key and
              t.contract_key = f.contract_key and
              s.SUBSCRIBER_KEY = f.SUBSCRIBER_KEY and
              o.org_id(+) = AR_OrgId and
              g.country_code = pCountry and
              l.actual_date >= startdate and
              l.actual_date <= (startdate + 90) and
              o.cli(+) = s.area_subno and
              p.product_code in ('800','801','802','804','820','821')
              group by
              l.actual_date,
              o.city||o.zipcode, g.country_code,d.customer_name, d.customer_number,t.contrno,r.dest_level3, p.product_code;
    Type CountryTabType is Table of country_traffic_details.Country%Type index by BINARY_INTEGER;
    Type CallDateTabType is Table of country_traffic_details.CALL_DATE%Type index by BINARY_INTEGER;
    Type CustomerNameTabType is Table of Country_traffic_details.Customer_name%Type index by BINARY_INTEGER;
    Type CustomerNumberTabType is Table of Country_traffic_details.Customer_number%Type index by BINARY_INTEGER;
    Type BcnTabType is Table of Country_traffic_details.Bcn%Type index by BINARY_INTEGER;
    Type DestinationTypeTabType is Table of Country_traffic_details.DESTINATION_TYPE%Type index by BINARY_INTEGER;
    Type ProductCodeTabType is Table of Country_traffic_details.Product_Code%Type index by BINARY_INTEGER;
    Type ProductTabType is Table of Country_traffic_details.Product%Type index by BINARY_INTEGER;
    Type DurationTabType is Table of Country_traffic_details.Duration%Type index by BINARY_INTEGER;
    Type DebamounteurTabType is Table of Country_traffic_details.DEBAMOUNTEUR%Type index by BINARY_INTEGER;
    Type SiteTabType is Table of Country_traffic_details.Site%Type index by BINARY_INTEGER;
    CountryArr CountryTabType;
    CallDateArr CallDateTabType;
    Customer_NameArr CustomerNameTabType;
    CustomerNumberArr CustomerNumberTabType;
    BCNArr BCNTabType;
    DESTINATION_TYPEArr DESTINATIONTYPETabType;
    PRODUCT_CODEArr PRODUCTCODETabType;
    PRODUCTArr PRODUCTTabType;
    DurationArr DurationTabType;
    DebamounteurArr DebamounteurTabType;
    SiteArr SiteTabType;
    Begin
         startdate := (trunc(pWeekStartDate) + 6) - 90;
         Exe_Pos := 1;
         Execute Immediate 'Truncate table country_traffic_details';
         dropIndexes('country_traffic_details');
         Exe_Pos := 2;
         /* Set org ID's as per AR */
         case (pCountry)
         when 'FR' then AR_OrgId := 81;
         when 'AT' then AR_OrgId := 125;
         when 'CH' then AR_OrgId := 126;
         when 'DE' then AR_OrgId := 127;
         when 'ES' then AR_OrgId := 123;
         when 'IT' then AR_OrgId := 122;
         when 'PT' then AR_OrgId := 124;
         when 'BE' then AR_OrgId := 132;
         when 'IE' then AR_OrgId := 128;
         when 'DK' then AR_OrgId := 133;
         when 'NL' then AR_OrgId := 129;
         when 'SE' then AR_OrgId := 130;
         when 'UK' then AR_OrgId := 131;
         else raise_application_error (-20003, 'No such Country Code Exists.');
         end case;
         Exe_Pos := 3;
    dbms_output.put_line('3: '||to_char(sysdate, 'HH24:MI:SS'));
         populateOrderDetails(AR_OrgId);
    dbms_output.put_line('4: '||to_char(sysdate, 'HH24:MI:SS'));
         Exe_Pos := 4;
         Open cTraffic;
         Loop
         Exe_Pos := 5;
         CallDateArr.delete;
    FETCH cTraffic BULK COLLECT
              INTO CallDateArr, SiteArr, CountryArr, Customer_NameArr,CustomerNumberArr,
              BCNArr,DESTINATION_TYPEArr,PRODUCT_CODEArr, PRODUCTArr, DurationArr, DebamounteurArr LIMIT arraySize;
              EXIT WHEN CallDateArr.first IS NULL;
                   Exe_pos := 6;
                        FORALL i IN 1..callDateArr.last
                        insert into country_traffic_details
                        values(CallDateArr(i), CountryArr(i), Customer_NameArr(i),CustomerNumberArr(i),
                        BCNArr(i),DESTINATION_TYPEArr(i),PRODUCT_CODEArr(i), PRODUCTArr(i), DurationArr(i),
                        DebamounteurArr(i), SiteArr(i));
                        Exe_pos := 7;
    dbms_output.put_line('7: '||to_char(sysdate, 'HH24:MI:SS'));
         EXIT WHEN ctraffic%NOTFOUND;
    END LOOP;
         commit;
    Exe_Pos := 8;
              commit;
    dbms_output.put_line('8: '||to_char(sysdate, 'HH24:MI:SS'));
              lSql := 'CREATE INDEX COUNTRY_TRAFFIC_DETAILS_CUSTNO ON country_traffic_details (CUSTOMER_NUMBER)';
              execDDl(lSql);
              lSql := 'CREATE INDEX COUNTRY_TRAFFIC_DETAILS_BCN ON country_traffic_details (BCN)';
              execDDl(lSql);
              lSql := 'CREATE INDEX COUNTRY_TRAFFIC_DETAILS_PRODCD ON country_traffic_details (PRODUCT_CODE)';
              execDDl(lSql);
              lSql := 'CREATE INDEX COUNTRY_TRAFFIC_DETAILS_SITE ON country_traffic_details (SITE)';
              execDDl(lSql);
              lSql := 'CREATE INDEX COUNTRY_TRAFFIC_DETAILS_DESTYP ON country_traffic_details (DESTINATION_TYPE)';
              execDDl(lSql);
              Exe_Pos:= 9;
    dbms_output.put_line('9: '||to_char(sysdate, 'HH24:MI:SS'));
    Exception
         When Others then
         raise_application_error(-20003, 'Error in populateCountryTrafficDetails at Position: '||Exe_Pos||' The Error is '||SQLERRM);
    End populateCountryTrafficDetails;
    In the above procedure if i substitute the values with hard coded values i.e. AR_orgid = 123 & pcountry = 'Austria' then it runs faster.
    Please let me know why it is so ?
    Thanks in advance.

  • Still Having Problem with Battery Overheating with Car Dock/Charger when using Maps/Navigation

    I'm having a problem with the battery overheating when using Google Navigation in the OEM Samsung car dock and car charger.  On a trip last weekend, I started off with a fully charged battery (because posts on other sites have complained that the Charge cannot keep up with the power draw of the Google nav app while using the car charger).  About an hour into my trip, I got a message that the battery was overheating and to unplug the charger which I did.  I then had to contend with the screen going out because it was running on the battery.  I let the phone discharge to about 70% then tried the car charger again.  Within a few minutes, I got the same overheating message.  It was not an overly hot day and the car A/C was set at 68 degrees.  
    This morning (with the battery at about 85%) I tried to use the Navigation without the car dock while charging and got the same results...the phone battery overheated and I had to unplug the charger. The battery temperature reached 116 degrees. (also, the battery level was also dropping while using the Maps or Nav application even though it was hooked up to the car charger).  
    I'm very disappointed with this situation since I was hoping I could replace my old Garmin GPS with the Charge.  But between the phone dimming the screen while running on battery, and having a depleted battery in the phone at the end of the trip, its just not a viable option.  I really like this phone, but I'm running against the "return" clock.  
    Any ideas?
    Could this be a software problem that will be corrected by an update in the future?
    fyi:  other Charge problems in the last 5 days:
    - dropping audio on calls to other Verizon phones.
    - use of camera flash causing the phone to reboot.
    (I do have the 'class 4' 32gb card in my Charge)
    Thanks in advance,
    Rich

    Jerry:
    Yes, the phone is charging while in the car dock.  I confirmed it both under the "about phone-status-battery status" menu and by my battery widget.  By watching the battery widget, I also noticed that the voltage steadily increased over the ride home.  It started at about 3.90 volts and ended at 4.02 volts.  I don't know if that is significant.  This time the battery did not overheat.  The Max temp was 110 degrees, but no notice to disconnect came up.  This might be because the sun was behind me on the drive home rather than beating down on the dash like it was this weeked.
    I've ordered a cheap universal dock from Amazon for about $15.00 which clips onto the a/c vent.  I want to see if this keeps the temperature down.  If this works, I can still return the fancy-schmantzy Samsung OEM car dock. (The car-dock interface wasn't that impressive anyway).
    Please let me know if the volt change means anything.
    And thanks again for your help!
    Rich

  • Project Owner not mapping when using Create Project in Ideation Custom list

    I have a custom ideation list in Project Online used for project proposals. When using the Create Project function in the ribbon, I select the mapping from my Project Owner people picker field to map to Project Owner ID. The Project is then created successfully,
    however the Project Owner is listed as the person who clicked the Create Project button in the ribbon, not the name in the Project Owner field. This also occurs when running from SPD workflow. I know in on-premise situation this works as I expect ... is this
    a bug in Project Online?
    Thanks,
    Josh

    Josh,
    Just wanted to say that, I was able to reproduce your issue. It works as expected on-prem, but not as online. I will update once I have more info on any posisble resolution.
    Cheers,
    Prasanna Adavi, Project MVP
    Blog:
      Podcast:
       Twitter:   
    LinkedIn:
      

  • Lots of different errors when using Maps on Linux, help?

    I'm trying to use Maps in one of my programs, but for some reason I get all sorts of different errors when compiling.
    I've tried both my own (very) simple tests of it and also I've copied and pasted the code straight out of the official tutorials.
    //Edit: Ok, I've tried it on several different IDEs, and Netbeans (on both Linux and Windows) and JCreator(on Windows) both work now for whatever reason. The only one I still have problems with is below.
    Here some of the errors I get, and nothing is making sense.
    On a Linux machine, using a simple IDE (Geany):
    MapTest.java:6: not a statement
    Map<String, Integer> m = new TreeMap<String, Integer>();
    ^
    MapTest.java:6: ';' expected
    Map<String, Integer> m = new TreeMap<String, Integer>();
    I don't know why it isn't working.

    What do IDEs have to do with this? It's a compiler error.
    Do you import java.util.Map and java.util.TreeMap?
    Are you using JDK 5 or higher? Generics didn't appear in Java until JDK 5.
    %

  • How to map when using mail adapter

    Hi:
    I'm doing a test with mail adapter in XI. The scenario is I put an XML representation content based on the outbound interface used by sender mail adapter directly in inbox mail content and send it. At the other side, I want to using receiver file adapter sotre the content as a file in file system. But some mapping is needed.
    What I have already done is to define one outbound interface(<b>IF_Mail</b>) which is used by sender mail adapter.IF_Mail using the structure like
    <MT_Mail>
    <mail> 
    </mail>
    </MT_Mail>
    I also defined an inbound interface(<b>IF_File</b>). IF_File is using the structure like
    <MT_File>
    <file> 
    </file>
    </MT_File>
    I want to map the value of <mail> in mail to <file> in file. I did structure mapping between two message types in IR and all of the configuration in XI.
    I put the below content
    <MT_Mail>
    <a> test
    </a>
    </MT_Mail>
    as inbox mail content and send it. But when I monitor the XI message. It always says something is wrong with mapping.
    what am I doing wrong?  Thanks.

    Hi Oscar,
    copy the payload of incoming message (SXMB_MONI) to your desctop and test the mapping inside the IB Repository (Test Modus of IF-Mapping or Message Mapping), switch the trace to "all".
    Regards,
    Udo

  • Slow down of E71 when using maps.

    Hi,
        I bought E71 today and found some problem.
    My phone hangs when i use Maps and i have to take my battery out inorder to start my phone again.
       I use 2GB memory card with E71 phone.
    Lets suppose you are not connected to internet by any means (no WLAN or else) . Make sure there is memory card in the phone and some maps are already there when you used the maps application earlier.
    Now, launch Maps application.
    After sometime there is message which says " No internet connection. Try connecting to internet"
    When I press "OK" the phone hangs.
     Is this normaly seen in Nokia E71, that it hangs?
    If not, please help me in resolving the issue.
    Thanks and regards,
    Mandeep
    Message Edited by minksingh on 29-Jul-2009 09:34 AM

    Hi,
       I figured out the problem. I bought this phone from US and therefore the firmware version is 
    200.21.118
    Please carry out the following steps. 
    In the Maps option menu select internet. Then select Connect at startup. Select YES.
    Now exit Maps application. Do not connect to anytype of internet.
    Now try launching Maps application. Wait for 10 to 20 sec to get the message "Your not connected to Internet. Connect it Now". 
    Try pressing OK key or any other key for that matter. The phone hangs ...
    I don't know wheather this problem is in all kind of firmware versions or only in
    200.21.118
    Regards,
    Mandeep

  • When using Maps as GPS,  screen keeps going off - iPhone 3G

    When I use maps as a gps, how do I stop the screen from going off?

    But, that makes the auto-lock feature be turned off for all usages. What about if you only want the screen to stay on while you're using Maps? I have to turn off the auto-lock every time and then go back and turn it back on? It seems like this should be a setting in the Maps app instead of having to change the master settings.

  • Why does Photoshop CC running slow when using Mixer brush tool

    Why does Photoshop CC and Photoshop C6 running SOOO slowly when using Mixer brush tool??
    Only to create one stroke it takes several seconds.
    I have to wait a long time to do next stroke. I can't work with this. How do I fix this??
    I have a new computer, a Mac Book Pro with 16 GB ram, so I have plenty of ram.

    You really have to keep your brush size small with the Mixer Brush tool.  And that necessitates keeping your canvas failry small as well.
    Back a few years ago I did a whole painting with the Mixer Brush once and some of the bristle brushes - just to see if I could - and I found I had to really limit the brush size (e.g., to 50 to 75) in order to get enough responsiveness to keep painting.  In that case my canvas was 4096 x 5120.  It's not impossible to get a good, professional result, but you have to be careful about sizing things right.
    -Noel

  • Photoshop crashes when using Free Transform Tool

    Hello All Forum Members,
    Recently Photoshop CS6 crashes when I attempt to use the Free Transform Tool through the shortcut (Ctrl+T).
    It also crashes very often when using any of the free transform/transform tools via the menu as well, though not as often as the previous listed situation.
    This experience only occurred recently - for all the time I have been using CS6, this has never happened.
    I have read another thread similar to this, though I don't think the cause of the problem is the same as this was only a recent experience.
    Any help will be appreciated.
    Many thanks in advance.
    Jinky145

    Hi Curt Y,
    Thank you for the quick reply!
    By immediately, do you mean when the loading or when the actual interface has finished loading?
    I have tried both, but neither seems to have worked.
    Is there a menu or someplace else I can reset preferences?
    Many thanks!!!
    JInky145

  • Erasing map data using map loader?

    my n95 8gb seems to just hang and constantly say deleting data please wait...
    how long should it take? after 15 mins i turned map loader off and hey the maps had been deleted. why does it hang like that?

    Could be something else on your computer thats causing it to crash.
    Have you updated to the latest 2.x version of map loader from maps.nokia.com?

  • Fan running high when using word

    never had trouble with the fan but i recently started using word more often which causes the fan to run at high rpms - i know it´s usually around 1800, word causes it to be around 6200 rpm.
    this is quite annoying since it lasts as long as i´m using word. anyone knowing a solution?

    I use the PPC version 10.0.0 of Word and it runs cool. Use Activity Monitor to see how much CPU % Word is using. Mine uses in the single digit percentage.
    I wonder if there is something in Word's Preferences that is turn ON that could be turned OFF, something on the order of a virus checker or some other utility that is unnecessary, which is consuming a lot of power? I really have no better idea than that but thought I would through it out since it would not hurt to look and see if there is something suspicious in Prefs.

  • E-mail Reply function no longer works -- only when using Firefox. Gives blank compose screen. Have tried settings changes. Have un and re installed firefox.

    Problem does not occur when using a different browser.

    Is it Yahoo! mail?? Many users have discovered all kind of problems and glitches with Yahoo! mail in Firefox when using an old bookmark saved before Yahoo!'s recent server changes.
    I suggest clearing your Yahoo cookies and entering through the main page to get a better address for your current mail server.
    To remove your Yahoo cookies -- save any pending work first -- call up the Cookies dialog while viewing any page on yahoo.com (or your Yahoo site). You can use either:
    * right-click the page > View Page Info > Security > "View Cookies"
    * Tools menu > Page Info > Security > "View Cookies"
    In the dialog that opens, you can remove the site's cookies individually.
    Then go to one of these Yahoo addresses and click on login or mail from there:
    * Yahoo home page: https://www.yahoo.com/
    * My Yahoo page: https://my.yahoo.com/
    * General mail redirect: https://mail.yahoo.com/
    * AT&T users: http://att.yahoo.com/
    * Other country sites (not on .com): the main Yahoo page for your country
    Does that help?

Maybe you are looking for