Does each query template call within a repeater re-create the connection?

Version:  11.5.1.b57
Hi,
How exactly does query template calls from a BLS work?  Does each call re-create the connection to the database, or does the connection stay open for awhile?
Specifically, in my situation we are making query template calls to a database within a repeater loop to insert rows and I'm curious whether it is recreating the connection each time.  We can't insert all the rows at once because of JDBC limitations, so have to insert row by row.  We are reading the data from an xml file and then inserting the data into the database and the performance seems slower than I would have expected (even inserting row by row).  Currently it is taking around ~4m to insert ~2600 records into the database.
I thought one of two things would be causing the slow speed.
1.  XMII is recreating the DataBase connection for each query template call
2.  The repeat reading from the XML document is time-consuming as 11.5 BLS XML manipulation is slow.
Thanks for the help.
Kerby

Hi Kerby,
It will  recreate connection eachtime.
You need to use the repeater action block to insert all the rows.If you wont use repeater,it will insert only one row.
2600 records inserting into database means you will get performance issue because eachtime it will recreate the connection.
To avoid the performance issue you need to do the following things:
1) you schedule the transaction in backend.It will insert the records in the database table.
2) If you want to populate the data in front end , write a query using that table and make a grid.
It wont create any performance issue.Always big transactions we need to schedule in backend to avoid the performance issue.
Hope this will help you.
Thanks,
Manisha

Similar Messages

  • I designer I want to create forms for web client, does each client have to purchase form central to access the data?

    I designer I want to create forms for web client, does each client have to purchase form central to access the data?

    Hi,
    In this scenario, you can share the document with the clients to and provide co-author privileges.
    Co-authors can edit the form design, options, responses, and summary report (everything that you can do).
    Note:- They do not require a paid subscription to view the responses, free subscription users can become co-authors.
    Please refer to the following thread to know how to share a form with others:-How do I share a form I created with others?
    Regards,
    Nakul

  • Passing query template name to BLS SQL action in the link editor

    I want to have one transaction that uses the SQL query action, but which query template it uses will be dependent on some user input. I am having trouble passing the query name. I'm using the full file path in xml format (i.e. "c://<folder1>//<folder2>//<folderN>//"&PassedFileName&".xml", but with backslashes instead of forward slashes). I got an error around the connector, so I set that too. Then I got an error around mode, so I set it to "FixedQuery". Now I'm getting, "The Query expression was not set with the Query parameter".
    There are only 3-5 possible queries that will be used, so I'd rather build SQL queries and just pass the transaction the name of the query, as opposed to passing the full text of the query each time.
    Thanks,
    Carrie
    Edited by: Carrie Schimizzi on May 9, 2008 6:38 PM
    Edited by: Carrie Schimizzi on May 9, 2008 6:39 PM
    Edited by: Carrie Schimizzi on May 9, 2008 6:40 PM

    Carrie,
    If you haven't already done so, configure your master BLS transaction with a proper representative runtime variation, which will make the whole process simpler to create and troubleshoot.  Quite often when people try to use the dynamic capabilities of MII, they end up getting confused because of user over-complication.  In your SQLQuery action block make sure you configure it to a valid template that would be one that the user would provide as an input (don't forget to allow the generation of sample results for making any subsequent trx efforts easier).  Then look in the link editor and you should see this string value for the query template link if you hover over the corresponding blue T icon.  This will show you the format you need to provide from your Transaction input property (which should also have a valid default value assigned so you can test the transaction by itself, without needing to initially rely on the Xacute Query template layer.
    Regards,
    Jeremy

  • Single record in query are splitted inot two record after creating the view

    HI ,
           We have created one query and when we execute with characteristics combinations we get some record.
           we have created the view on the same query and when we execute the view ,the same record is splitted into 2 lines with some of the key figures are showing in one line and remainig are in other line.
    please suggest here.

    Look at your source data. Keep in mind that your queries are just that.. queries. The number of rows of results is not a reflection of the number of database records you have in your infoprovide. It is what your query asked the infoprovider to give you.
    For example:
    You have two records. Both records have the same 'customer'. One record has document number "A", the other has document number "B". Record "A" has key figures Sales and Profit, Record "B" has key figures Quantity and Margin.
    Query 1 asks for Customer, Sales, and Margin. It will return both records A and B as one row of data, with the Sales data from record A, and the Margin data from record B
    Query 2 asks for Customer, Document number, Sales, and Margin. It will return two rows of data... the first showing record A and Sales but no margin, the second showing record B and Margin but no sales.

  • Is it possible to embed JavaScript functions into a Flash file (AS 3.0) and call within flash itself, without using the external .js file

    Scenario:
    I have a text area in flash. The user will copy paste any JavaScript  function in the text area and click execute button. The JavaScript function pasted in the text area should be executed with in the flash itself and the return value will be shown in another text field.

    yes,
    function testF(s:String):XML{
        var js:XML = <script>
        <![CDATA[
        ]]>
        </script>
        js.appendChild(XML(s));
        return js;
    ExternalInterface.call(testF(your_tf.text));

  • How to call a instance method without creating the instance of a class

    class ...EXCH_PRD_VERT_NN_MODEL definition
    public section.
      methods CONSTRUCTOR
        importing
          value(I_ALV_RECORDS) type ..../EXCH_VBEL_TT_ALV
          value(I_HEADER) type EDIDC .
      methods QUERY
        importing
          I_IDEX type FLAG
          i_..........
        returning
          value(R_RESULTS) type .../EXCH_VBEL_TT_ALV .
    Both methods are instance methods.
    But in my program i cannot created instance of the class unless i get the results from Query.
    I proposed that Query must be static, and once we get results we can create object of the class by pasing the result table which we get from method query.
    But i must not change the method Query to a static method.
    Is there any way out other than making method Query as static ?
    Regards.

    You can't execute any instance method without creating instance of the class.
    In your scenario, if you don't want to process your method of your class, you can check the instance has been created or not.
    Like:
    IF IT_QUERY IS NOT INITIAL.
      CRATE OBJECT O_QUERY EXPORTING......
    ENDIF.
    IF O_QUERY IS NOT INITIAL.
    CALL METHOD O_QUERY->QUERY EXPORTING....
    ENDIF.
    Regards,
    Naimesh Patel

  • Does Hello work in FFx36 on Linux Mint 17.1? It creates the connection but then ignores me, no a/v display from other people

    Trying out the new Hello. Seems to work great on my Android with FFx Beta, and on my Windows 8.1, but when trying to either initiate or join a conversation from my Linux desktop, it doesn't seem to like me. If initiating a new conversation, it lets me copy/email the link to others, but never tells me when they joined or displays any audio or video, even though they are happily chatting with each other. When joining an existing conversation, it tells me there are already 2 people there, but still doesn't actually participate. Others don't see that I joined. Have no problems with using Skype on this linux machine, or playing HTML5 and other video (Hulu, YouTube, etc) in Firefox. Running Cinnamon desktop.

    When you say others, are you trying to group video? Currently the release version only supports one on one video chatting.
    If this is not the case, please make sure that the default devices are selected.
    "Firefox Hello doesn't work properly when no video camera is installed " is also the name of a bug that seems to be fixed in version 38. I would recommend trying Nightly on your linux machine since this will not be fixed for Firefox 36.
    <!--https://bugzilla.mozilla.org/show_bug.cgi?id=1106941-->bug?

  • Default Query Template - Graph axis label alignment

    We have BW3.1 and are using a modified Default Query Template. I am trying to set the alignment of the labels on the x-axis to diagonal (bottom-left to top-right) and although the preview shows the correct alignment, when used in conjunction with a query it defaults to vertical.
    It works fine if I develop a specific web template for a query, but not for adhoc queries.
    Any suggestions?

    I'm guessing this happens at 30 degrees as well: Bug 10199188 : CHARTS X AXIS LABEL IS BLURRED AT 45/60 ANGLE
    This bug was apparently fixed in the 11.1.1.6.6 Patch Set. Oracle Support does not have a workaround for this either.
    Please award points if helpful/correct.

  • Sending Query to query template

    Hi,
    is it possible to send query from Html page to query template. for example, i create query template as IDBC server and in fixed query mode without giving any query. just blank. in page generator i mapped with iCommand. Now i want to send query from javascript by using getQueryObject. how to send it?
    -senthil

    Senthil,
    As John indicated, using the built-in query parameter [Param.x] allows you to be very dynamic in your approach, but document.APPLET.getQueryObject().setQuery('SELECT....'); would be the same thing if you just wanted to pass in the whole fixed query statement.
    I may be getting ahead of things, but I can't help but think you are heading down a bad development path by burying all of your queries in the client side script.  You can use iCommand applets as recordset objects, but they will always be client sided, not server sided like ado recordsets in asp.  I've seen far too many system integrator botched applications where the the body onload was used to trigger javascript that attempts to force queries into applets when they have not been initialized by the JRE.  By nature Query Templates themselves can be filled with [Param.x]'s but trying to develop large amounts of application content where the select statements are assembled in client side javascript can lead to all sorts of supportability issues for the customer.  Imagine a customer going to training, and understanding the basics of query templates, and then trying to reverse engineer your page with one query template called "SQLGeneric" and all of the logic buried in javascript.  He/she opens the template and all they find is a FixedQuery with [Param.1] - can you envision their confusion?  Then they look at the 1000 - 2000 lines of javascript that I've seen at times?
    Can you provide the business case as to why you would not create a simpler query template minded approach, or would want to construct the queries this way?
    Regards,
    Jeremy

  • Maintaining multiple query templates

    Hi,
    We created a generic query templates for SQL Query and this query template does not have any query specified inside the Query Template. The SQL query is assigned inside the xMII transaction. Instead of creating and maintaing multiple query templates for various SQL queries, we created this single query template and we use this query template by assigning the SQL query in xMII Transaction at runtime. Will there be any issues around this approach?
    Thanks,
    Sara

    This approach limits the reusability/maintainability of your queries.  If any query is to be used more than once (e.g. in a UI application or more than one BLS transaction), it makes sense to put it in its own query template.  Also, if you want to take advantage of xMII's caching infrastructure, you should also do this.
    There's also a small possibility in the future (I'm no longer with SAP, but just suggesting it is a possible outcome) that the SQL will not be dynamically assignable to avoid SQL code injection security issue(s).

  • Phone does not ring when called any suggestions

    Iphone4 does not ring when called. Any suggestions?

    Is the silent switch on?
    Does the ringer not sound or does the call not come through at all?
    Can you make outgoing calls?

  • How does materialized view work when refresh the view vs create the view?

    I am using a materialized view, and I cant set it to fast refresh because some of the tables are from remote database which does not have materialized view log.
    When I create the materialized view, it took like 20 30 seconds. however when I was trying to refresh it. It took more than 2 3 hours. and total number of records are only around 460,000.
    I understand that when the view refreshes, it would take extra step like purge the table however I am not sure why it made so much difference in execution time perspective...
    Does the dbms_mview.refresh('MY_MATVIEW', 'C', atomic_refresh=>false) do the same exact insert as when I created the view?
    Could anyone please let me know how would this happen? Thanks,
    Code looks like as following
    create materialized view MY_MV1
    refresh force on demand
    start with to_date('20-02-2013 22:00:00', 'dd-mm-yyyy hh24:mi:ss') next trunc(sysdate)+1+22/24
    as
    ( SELECT Nvl(Cr.Sol_Chng_Num, ' ') AS Change_Request_Nbr,
           Nvl(Sr.Sr_Num, ' ') AS Service_Request_Nbr,
           Nvl(Sr.w_Org_Id, 0) AS Org_Id,
           Fcr.rowid,
           Cr.rowid,
           Bsr.rowid,
           Sr.rowid,
           SYSDATE
      FROM [email protected] Fcr
    INNER JOIN [email protected] Cr
        ON Fcr.w_Sol_Chng_Id = Cr.w_Sol_Chng_Id
    INNER JOIN [email protected] Bsr
        ON Fcr.w_Sol_Chng_Id = Bsr.w_Sol_Chng_Id
    INNER JOIN [email protected] Sr
        ON Sr.w_Srv_Rec_Id = Bsr.w_Srv_Rec_Id
    WHERE Sr.Sr_Num !='NS'
    );I have tried to use dbms_mview.refresh('MY_MATVIEW', 'C', atomic_refresh=>false) but it still took 141 mins to run... vs 159 mins without atomic_refresh=>false
    Edited by: 986006 on Feb 20, 2013 2:15 PM

    Welcome to the forum!
    Whenever you post provide your 4 digit Oracle version (result of SELECT * FROM V$VERSION)
    >
    I am using a materialized view, and I cant set it to fast refresh because some of the tables are from remote database which does not have materialized view log.
    When I create the materialized view, it took like 20 30 seconds. however when I was trying to refresh it. It took more than 2 3 hours. and total number of records are only around 460,000.
    I understand that when the view refreshes, it would take extra step like purge the table however I am not sure why it made so much difference in execution time perspective...
    Does the dbms_mview.refresh('MY_MATVIEW', 'C', atomic_refresh=>false) do the same exact insert as when I created the view?
    >
    What Oracle version are you using? The 'atomic_refresh' parameter default was changed to TRUE starting with 10g.
    See the PL/SQL Packages and Types doc
    >
    atomic_refresh
    If this parameter is set to true, then the list of materialized views is refreshed in a single transaction. All of the refreshed materialized views are updated to a single point in time. If the refresh fails for any of the materialized views, none of the materialized views are updated.
    If this parameter is set to false, then each of the materialized views is refreshed in a separate transaction.
    >
    What that means is that if the value is TRUE Oracle uses a DELETE to remove the existing rows. If the value is FALSE then Oracle uses TRUNCATE.
    If you really are using the FALSE setting you should not be seeing that much of a time difference between creating the MV and a complete refresh so something else must be going on.

  • IPhone 4S no longer will send or receive texts or calls even though it shows I'm connected to my Sprint Server.

    Hello everyone, I'm in need of some major help with my IPhone 4S.  I'm very confused and frusterated!  My friend had originally purchased two IPhone 4S phones about two years ago.  I know this because he decided to give me his second IPhone 4S that was no longer being used by the person who had it before, since I didn't have a phone and he had it on a two year contract. That two year contract ended months ago and he renewed it for another two years.  Everything had been working pretty well except crappy reception at my house every now and then, since I live in the middle of nowhere.  But where my problem comes in is, for the past few days I haven't been able to send or recieve texts or calls at all. It just keeps saying failed to send when I try to send a text, and it won't receive any texts.  When I try to make a call, it goes to a couple different weird recording things trying to ask what type of call I'm making, or saying the connection can't be made. I can't recieve calls at all.  I have no idea why this happened, it was really random, and I'm very frusterated.  It always shows my phone having two or three bars and service, more than enough to do these things, but for some reason it's ike it's become disconnected.  This type of thing happened a few weeks ago, but only for a few hours and then I started getting all my texts and whatnot and it went back to normal.  But now it's lasted almost a week.  I have Sprint and even when it shows me having 3G service and all bars, it won't send or recieve calls or texts.  I tried resetting network settings, and that didn't change or fix anything.  I've also tried shutting it off and turning it back on multiple times and the whole airplane mode on and off thing and NOTHING is working.  If any of you could help, or offer suggestions, that'd be awesome. Much appreciated!

    I'll have to use somebody else's phone for the call, but I was thinking maybe that's my last option. :/  Thanks!

  • Why does "the connection is not trusted" turns up on every site when using FF but not Safari?

    Started yesterday. I have reinstalled FF three times - but it's still happening. Every site I try to use it will lead me to this. Google, Facebook, hotmail etc

    Database connections must be either through an ODBC connection or the form must be certified in Acrobat. This is due to security concerns. You can view the Help topic "To create a data connection to an OLE database" for more info.
    I'm not sure why you cannot create the connection using the ODBC Driver. I've done this many times myself. Is the mdb file read-only, or does it require credentials to connect?
    Ernest
    Adobe Systems

  • Passing a variable value from one query to another within a web template

    Hi All,
    I have a web template with two queries.  Both queries have the same select option variable called ZSELCUST on the characteristic ZCUSTOMER but because they are different info providors (both infocubes) the customer has to be entered once for each query, even with the 'Display same variable only once' flag checked.
    I want the user to select the customer once and then that value be passed to the other query within the resulting web template output.
    Am I right in that the same variable is used more than oncee because of the different info providors?
    I'm struggling, can anyone help out there....???
    Best Regards,
    Stuart Humphrey

    Hi
    A way of doing this is by "linking" the queries: in transaction RSBBS you define the sender and receiver queries. In query navigation you can jump to the dependent query (blue arrow icon in the BEx tool bar). This transfers the navigational state to the called query: filters over characteristics and variable values.
    Hope this help
    German

Maybe you are looking for

  • How to nestle 20+ pages into one "folder" in the vertical left-hand index c

    This question regards the vertical index column on the left hand side of the workspace in an open iWeb program. I have a bunch of regular pages (about 20 and growing) that I will link to another single page. That single page will have a bunch of pict

  • How to create DAD after install?

    I have installed Oracle 10g on Linux server. Then from 10g Companion CD, I installed just Oracle HTTP Server and HTML DB on Windows client. The Windows client has absolutely no other install of Oracle except what is installed by Companion CD. The ins

  • Can any body tell the seqence in the following events.

    can any body tell the seqence in the following events. at selection screen at selection screen  on field at selection  screen output

  • Calling report from DOS

    Hi, I am trying to write a DOS batch file. I am using report 6i and I wish to use this batch file to call my reports everynight and generate some pdf file so that my users can download them. Can any one please advice me on how to make execute report

  • Sto facendo l'aggiornamento a ios 7.1.2 solo che si è caricato un pò e poi si e bloccato

    l'iphone mi ha Fatto Presente Che C'Era ONU aggiornamento da tariffa, DOPO Aver accettato di posta Partito Tutto normale SI e SI Spento e riaccesso e Sotto e Uscita Una linea colomba normalmente SI dovrebbe caricare E Così Capire Che l'aggiornamento