SOLVED: Degraded performance when I base my form on a view

I am writing a form with a single database view that unions two tables.
When I query a record based on an index column the form is behaving as it is retrieving all the records and takes over a minute.
When I issue the same query (which I get by messaging out :system.LAST_QUERY) using TOAD or sqlplus, the query is immediate.
Is anybody aware of form issues that would make this behavior.
Our version of forms is 10g.
Thanks
Message was edited by:
Tom1

I found that the cause was not the view but some very bad performing query in my POST-QUERY trigger.
Two lessons:
1) Never forget the other parts of the form.
2) If your query performs fine in sqlplus or TOAD like tools then it's not likely to
be your query.
Message was edited by:
Tom1

Similar Messages

  • Degrading performance when running consecutive insert operations

    Hi,
    I'm using DB-XML (2.5.16) as a backend storage for a web application that works on top of a TBX (TermBase eXchange) document. The application is using the Python bindings and development is being done on GNU/Linux with Python 2.6.
    The document is stored in a node-storage container, autoindexing is off at the time of container creation and transactions are enabled.
    After a set of indexes are set, queries work quite fast.
    On the other hand, when users input new data (terms) or perform edits on existing data, insert and replace operations have instant effect.
    The application has also a feature to insert lots of new terms in a single click, resulting in a new insert operation for each term. If the amount of terms to be inserted is relatively small (let's say ~10), the operation is quickly performed and the user receives a response almost instantly.
    Anyway, the problem arises when there are lots of new terms to be inserted. It starts working fast but performance quickly starts to degrade badly, needing more long seconds for each insert operation. Python's CPU-usage seems to go up to 100% when doing the actual insert, too.
    I understand this is not the best-working scenario for DB-XML (a single large document), but I don't think this performance is normal or acceptable.
    I have tried increasing Berkeley DB's cache size to 64MB with no success.
    Any hints about what should I be looking at? any more recommendations?
    These are the defined indexes:
    dbxml> listindexes
    Index: node-element-equality-string for node {}:admin
    Index: node-element-equality-string for node {}:descrip
    Index: node-attribute-equality-string edge-attribute-equality-string for node {}:id
    Index: node-attribute-equality-string for node {http://www.w3.org/1999/xhtml}:lang
    Index: unique-node-metadata-equality-string for node {http://www.sleepycat.com/2002/dbxml}:name
    Index: node-element-equality-string for node {}:ref
    Index: node-element-equality-string node-element-substring-string for node {}:term
    Index: node-element-equality-string for node {}:termNote
    Index: node-attribute-equality-string edge-attribute-equality-string for node {}:type
    9 indexes found.Container information:
    dbxml> info
    Version: Oracle: Berkeley DB XML 2.5.16: (December 22, 2009)
             Berkeley DB 4.8.30: (2010-12-09)
    Default container name: cont.dbxml
    Type of default container: NodeContainer
    Index Nodes: on
    Auto-indexing: off
    Shell and XmlManager state:
         Transactional, no active transaction
         Verbose: on
         Query context state: LiveValues,Eager

    As you both have mentioned I have tried increasing the cache size to 512MB or even to 1GB (I have recreated the entire DBs after setting cache sizes), but I don't see any significative improvements.
    I have also tried to tune my insert queries, and now I think they're in better shape than before. I would say the initial inserts feel slightly faster, but this only happens when the DB is empty (just bootstrapped). Then, once the DB has some term entries and grows in size, it starts to degrade and inserting becomes expensive in order of magnitudes.
    Each insert operation is performed in a separate transaction. And yes, I'm using transactions all over the application.
    Vyacheslav, I'll send you a couple of containers along with insert queries created by the application so you can play with.

  • Degraded performance.

    Has anyone noticed degraded performance when enabling 802.11n with support for G? The reason for asking is all my wireless workstations are running 802.11n with the exception of my iPhone. I also want to get a wireless all-in-one printer/scanner which I can only find support for B/G wireless networks, not 802.11n. Can anyone recommend an all-in-one printer/scanner that supports 802.11n for use with Apple's AEBS router?

    Has anyone noticed degraded performance when enabling 802.11n with support for G? The reason for asking is all my wireless workstations are running 802.11n with the exception of my iPhone.
    That would be "normal" as the best you can expect in a mixed radio mode is 100 - 130 Mbps for your "n" devices. If you want to take advantage of "n" speed, you would either need to set up a "Dual-Band" network or remove any non-"n" devices from your current network.

  • Data Forms in Smart View - Add Members

    We have data forms with Add Member functionality. When opening that data form using Smart View it puts red border around top member but then instead of allowing user to select a member it lists all of them in the rows. A good example is ICP data form where user can select partner to report balance. The data form online allows selection of individual partners but when same data form opened in Smart View it lists all 1,000+ ICP True entities.
    Is syntax different when data form to be used with Smart View?
    We have V11.1.1.3.

    You have to suppress no data/zeros in SmartView and refresh the form to see the rows collapsed. I had created an enhancement request for this and it is currently under review by development. I would suggest you do the same if you'd like to see this fixed.
    The bug is listed as 13878488 - SUPPRESS ROWS IS NOT ENABLED WHEN OPENING FORM IN SMARTVIEW

  • How to solve thsi perform/form error occured in epc check

    Call to a program containing a syntax error (CALL/PERFORM/SUBMIT)
    Error in program /SAPAPO/SAPLATPQ_TIMESERIES - include /EPCOS/SD_CRSD0035_04 -
    line 76
    Syntax check error message:
    A target area must be declared either explicitly with an INTO clause or implicitl
    with a TABLES statement.
    Internal Message Code: MESSAGE GYN
    after clicking on error iam getting this statement how to solve this
    PERFORM localise_reqtms(/sapapo/saplatpq_timeseries)
                    USING space
                    CHANGING l_ts_endhor.

    Hi,
      This may be beacuse of the Internal Table you are passing to the Subroutine.
    So, In the Subroutine definition, we need to change the interface definition.
    FORM localise_reqtms(/sapapo/saplatpq_timeseries)
               USING SPACE as type C
               CHANGING L_TS_ENDHOR LIKE <Internal Table Type which you are using>  
    Thanks & Regards,
    Vamsi.

  • URL show password when calling a new form

    Forms 10.1.2.0.2
    Java 6.22
    Windows XP
    FireFox 4.0 and IE 8.0
    Hi. When calling another form from within an existing form the new form shows the URL I'm calling, but also includes the parameters I'm passing which happen to include my username and password. Like this:
    http://9.35.32.205:7777/forms/frmservlet?pageTitle=Dropper%20E/M&config=TTMSMENU&form=dropper_em&userid=MYUSER/MYPASS@SPARC20
    {code)
    Is there anyway to suppress the display of the URL or the parameters?
    Any help would be greatly appreciated.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    You said:
    ...When calling another form from within an existing form... Are you calling another form from an already open form using WEB.SHOW? If so, why? There are probably more reasons why you should not do this than the number of reasons to do this. Most importantly is that by opening a new browser to launch another Forms instance, you increase the resource usage on the client, thereby degrading performance.
    Why not use CALL_FORM, OPEN_FORM, or NEW_FORM? With any of these, the next form to open will display in the same browser and no login will be required since the user has already logged in at the first form. If the goal is to achieve multiple instances of the same "first" form, well for security sake, I would recommend the user log in manually each time anyway.

  • Closing the Applet when I exit the form

    I am deploying an application on web plataform using Forms Server 6i. I have created my own base.html with a logo and a menu as appropiate. I am using Oracle JInitiator to run the forms. When I run a form, the applet is loaded in a frame created in my base.html. All is working fine, but, when I exit the form, I supposse the applet it's still there, because in the page a gray rectangle still remains. I would like to have a background image in the page, and when I close the form, the applet was unloaded, so I can view the background again. How can I get that.
    Thanks.
    P.D.: Sorry but my english it's not so good.

    Make a new project and import old one into this new one.
    See if you can find a up to date Auto Save.
    Also make a habit of 'Save A Copy' to a different drive after each edit session. Save A Copy does not overwrite after so many times as Auto Save does.

  • How to do to appear records in a text item when I  run my  form?

    In a form I have a block with BASE TABLE=OPTIUNI_COD.
    In this block I have a text item named DENUMIRE.When I run my form the text item is empty and I use F7 , F8 to have some records in the text item.
    But I want to appear records in this text item when I run my form without use F7,F8.
    How can I do this?
    Please help me!Thank you!

    In a When-New-Form-Instance trigger you can use this:
    Go_Block('your_block');
    EXECUTE_QUERY;

  • Error when activate the Adobe forms

    Hi,
      I am getting the below error message when activate the adobe forms,and the message tells that to install a forms design tool,please tell me which tool in need to install and where i will get this tool.
    Could not start Layout Designer (see long text)
    Message no. FPUIFB086
    Diagnosis
    The forms design tool for developing the form layout could not be started; either it is not installed or there are errors in the installation.
    Procedure
    Make sure that you have the forms design tool installed on your desktop (the tool is part of the SAPGUI installation).
    Also read SAP Note 801524.
    Thanks,
    Deesanth.

    FIrstly, you have posted the question in the wrong forum. There's an entire forum in SCN only for Interactive Forms: .
    Secondly, this is a frequently asked question, especially in the Interactive Forms Forum. There's enough information there to get your query solved by searching.
    pk

  • Performance Problem with Adobe Print Forms (Non-Interactive)

    Hi Team,
    I have a <b>Web Dynpro ABAP</b> application with a print button which actually launces an Adibe print form (NOT Interactive) for the WDA data context. The scenario is for a Purchase Order in the ERP system. The problem is regarding performance when the line items are more then 150. The Adobe form is very simple WITH NO scripting and a plain tabular display of the line items. It takes around 4 minutes to load the form which has only 5 pages and is causing the WDA application to time out. Following are the configuration/Design details:
    ADS Version: 705.20060620101936.310918
    Adobe Reader 7.0, Version 7.0.9
    Adobe Live Cycle Designer 7.1, Version 7.1.3284.1.338866
    <b>FORM Element in WDA</b>:
    displayType = activeX (Should this be native for performance improvements?)
    "enabled" is not checked
    readOnly = 'X'
    <b>SFP Settings for the template Form</b>
    Layout Type in Properties = Standard Layout (Should this be xACF or ZCI for performance improvements?
    Interface type for the Form Interface = XML Schema-Based Interface
    <b>We are on 2004s release SP10</b>
    <b>Specific Questions:</b>
    1) Any recommendations for the above settings to improve performance?
    2) The form design is very simple with no complexity. The Table element is very basic and as per the blogs given in SDN. NO Scripting is performed.
    Any help, recommendations would be greatly appreciated.
    Regards

    Hi Sanjay,
    i would suggest you to have ZCI layout (native).
    Set the form properties to be cached on server (refer performance improvements in the Adobe LC Designer help).
    The performance will also depend on the ADS and also the network, including the R/3, as all these components come into picture.
    Hope these points, if you have not checked already, will help you.
    - anto.

  • When trying to distribute form I get message Acrobat 9.2 has encountered a problem and needs to clos

    Has anyone had this problem and solved it? I'm just trying to email the fillable document to myself so that I can post it on our website. I can't get tech support because I have a volume license.
    Thank you in advance!

    Hi- I'm using form distribution, not "attach to email."
    (If I'm just in my form and click on the submit button I put in, it sends the filled out form nicely to my email.  But it refuses to send it (and I get that error message about Adobe having "encountered a problem and needing to close") when I'm in "form distribution" and trying to send it to myself, or any other email address for that matter.

  • Transfer elements between 2 base table forms.

    Environment
    OS: WinXP
    Oracle 10g (9.0.4.0.0) Developer suite
    Scenario:
    2 base table forms
    Form1 is based on table1 and has 10 elements
    Form1 has a button which when triggered, causes 5 of the 10 elements to be inserted in table2
    Form2 is based on table2 and has 10 elements 5 of which are obtained from Form1
    When I do a query-execute in Form2 to pull all the records, only records that were entered through Form2 show up. The transferred elements (record) from Form1 are not pulled up.
    When I do a query->enter and search for records in Form2 that were transferred from Form1, I receive a FMR-40301 Query caused no records to be retrieved. Re-enter.
    However the records transferred from Form1 are pulled up if I run a sql in the Database.
    Please advice.
    Here is the code that is triggered when button is pressed in Form1 to transfer elements to form2.
    DECLARE
         raiDate               RAI_PROPOSAL.STAMP1%TYPE;
         raiTime RAI_PROPOSAL.STAMP2%TYPE;
         sPropNo               RAI_PROPOSAL.PROP_NO%TYPE;
         selRec               RAI_PROPOSAL%ROWTYPE;
         CURSOR getProp(propNo IN RAI_PROPOSAL.PROP_NO%TYPE) IS
              SELECT      *
              FROM          RAI_PROPOSAL
              WHERE          RAI_PROPOSAL.PROP_NO = propNo;
    BEGIN
         sPropNo := :RAI_PROPOSAL.PROP_NO;
         /* Open cursor and fetch selected row */
         IF( NOT (getProp%ISOPEN) )THEN
              OPEN getProp(sPropNo);
         END IF;
         FETCH getProp INTO selRec;
         CLOSE getProp;
         /* Get date and time of transfer */
         raiDate := sysdate();
         raiTime := TO_CHAR(sysdate(), 'hh24:mi:ss');
    /* list all elements being transferred - all have values so NOT NULL fields are taken care of*/
    MESSAGE(selRec.cdfa_no || ', ' || selRec.con_sub || ', ' || selRec.cs_amt || ', ' || selRec.cs_source || ', ' || selRec.dept_prdir || ', ' || selRec.dept_proj2 || ', ' || selRec.dept_proj3 || ', ' ||
    selRec.human_subj || ', ' || selRec.initials || ', ' || selRec.prime_agre || ', ' || selRec.prodir_fn || ', ' || selRec.prodir_ln || ', ' || selRec.prodir2fn || ', ' || selRec.prodir2ln || ', ' || selRec.prodir3fn || ', ' || selRec.prodir3ln || ', ' ||      selRec.proj_type || ', ' ||     selRec.prop_date || ', ' || selRec.prop_no || ', ' ||
    selRec.prop_title || ', ' || selRec.propr_info || ', ' || selRec.school || ', ' || selRec.sol_no || ', ' || selRec.spon_typ || ', ' || selRec.sponsor || ', ' || raiDate || ', ' || raiTime || ', ' || selRec.vert_anm);
         /* Insert selected proposal into award table */     
         INSERT INTO
         RAI_AWARD(CDFA_NO, CON_SUB, CS_AMT, CS_SOURCE,
                   DEPT_PRDIR, DEPT_PROJ2, DEPT_PROJ3,
                   HUMAN_SUBJ, INITIALS, PRIME_AGRE, PRODIR_FN, PRODIR_LN,
                   PRODIR2FN, PRODIR2LN, PRODIR3FN, PRODIR3LN, PROJ_TYPE,
                   PROP_DATE, PROP_NO, PROP_TITLE, PROPR_INFO, SCHOOL,
                   SOL_NO, SPON_TYP, SPONSOR, STAMP1, STAMP2, VERT_ANM)
         VALUES(selRec.cdfa_no, selRec.con_sub, selRec.cs_amt, selRec.cs_source,
              selRec.dept_prdir, selRec.dept_proj2, selRec.dept_proj3,
              selRec.human_subj, selRec.initials, selRec.prime_agre, selRec.prodir_fn,
    selRec.prodir_ln, selRec.prodir2fn, selRec.prodir2ln, selRec.prodir3fn, selRec.prodir3ln, selRec.proj_type, selRec.prop_date, selRec.prop_no, selRec.prop_title, selRec.propr_info, selRec.school, selRec.sol_no, selRec.spon_typ, selRec.sponsor, raiDate, raiTime, selRec.vert_anm);
         MESSAGE ('INSERTED');
         /* Commit the data inserted */
         FORMS_DDL('COMMIT');
    END;

    Hi,
    Do you have radio buttons, a check box or a list item on your form?
    I have seen this before. If the value queried from the database does not match the allowable values, the record is "silently rejected" and is not queried into the form. You say your records are in the database if you query table2 via SQL, but Forms is rejecting the records.
    Look up the Forms Help for the topics "Creating a Record Group", or "Mapping of Other Values", or Search for the word "silently". It will say something like:
    "Leave the Mapping of Other Values property blank to indicate that other values are not allowed for this item. Any queried record that contains a value that does not match one of the values associated with an element in the List is silently rejected. Any attempt to assign an other value is disallowed."
    HTH.

  • Trouble with field output conversion when activating the Adobe Forms

    Hi everybody,
    I'm facing an issue very strange.
    I made an interactive form for a customer which is based on abap dictionnary and send by e-mail to user. This form works fine and is in Production system .
    Now i made an evolution on this form and when i activate the forms in SAP , all the field conversion are lost so when i got the form Date fields appears with 00000000 if they are empty.
    To solved this issue in Development system , i delete the form and recreate it and that's have been sold .
    Now this issue appears in Quality system also after transport it...so i try to do the same way to solve it ...i create one transport order where the forms is deleted and another one to recreate it ..but the issue still alive.
    I search on OSS and don't find any notes for this .
    This issue also appears on aonther forms which is not interactive one ( purchase order printout ) .
    I work on ECC 6.0 with AdobeLifeCycle Designer ES 2
    Does anybody face this issue and solved it ?
    Regards

    Ok i will try to explain more clearly because i think there's a misunderstanding .
    When you define an interface of Adobe forms you can choose between DDIC interface or XML interface. When you chose DDIC interface when you generate the form all necessary SAP CONVERSION EXIT are use when value are given to the XML file .
    For example i got a field type datum define in my interface which is based on DDIC .
    I place this field in the layout and set the edit mask in the layout with 'YYYY/MM/DD' for example.
    Now i execute the forms and give value '00000000' to the field, normally what should appears in the result is : nothing because it's an initial value.
    But in my case the value appears as '00000000' , the edit mask in the form is not taking into account and the conversion of value inside ABAP Stakc is not done.
    When you have a look inside the function module generated by the form, you will fin a routine which name is %WORK and inside it you will see a routine which is %OUTPUT which is call for each field you want to print in the form .
    If my field is correctly output on the form the data type is givent to this routine in order to make it correct and until now everuthnigs looks good for me but my issue is that the data type of field are not given to this routine so it consider each field as simple TEXT and that wrongs.
    juste bellow the code generated for the routine %OUTPUT
    form %output using p_name      type fpfield
                       p_value     type any
                       p_datatype  type datatype_d
                       p_abap_type type c
                       p_reffield  type fpunit
                       p_unit      type any
                       p_edit_mask type convexit.
      case p_abap_type.
        when cl_abap_typedescr=>typekind_struct1 or
             cl_abap_typedescr=>typekind_struct2 or
             cl_abap_typedescr=>typekind_table.
    *     ignore
        when others.
          call function 'FPCOMP_WRITE_DATA_FIELD'
            exporting
              i_field_name   = p_name
              i_value        = p_value
              i_ddic_type    = p_datatype
              i_data_type    = p_abap_type
              i_edit_mask    = p_edit_mask
              i_ref_name     = p_reffield
              i_ref_value    = p_unit
            exceptions
              usage_error    = 1
              system_error   = 2
              internal_error = 3
              others         = 4.
          %fpcomp_error.
      endcase.
    endform.                    "%output
    is it more clear now ?
    Regards

  • BIBean poor performance when using Query.setSuppressRows()

    Does anyone have experience in suppressing N/A cell values using BIBean? I was experimenting the use of Query.setSuppressRows(DataDirector.NA_SUPPRESSION). It does hide the rows that contains N/A values in a crosstab.
    The problem is that the performance degrades significantly when I started drilling down the hierarchy. Without calling the method, I was able to drill into the pre-aggregated hierarchy in a few seconds. But with setSuppressRows(), it took almost 15 minutes to do the same drill.
    Just for a comparison, I used DML to report on the same data that I wanted to drill into. With either 'zerorow' to yes or no, the data was fetched less than a second.
    Thanks for any help.
    - Wei

    At the moment we are hoping this will be fixed in a 10g database patch which is due early 2005. However, if you are using an Analytic Workspace then you could use OLAP DML to filter the zero and NA rows before they are returned to the query. I think this involves modifying the OLAP views that return the AW objects via SQL commands.
    Hope this helps
    Business Intelligence Beans Product Management Team
    Oracle Corporation

  • DOI - I_OI_SPREADSHEET, poor performance when reading more than 9999 record

    Hi,
    Please read this message in the [ABAP Performance and Tuning|DOI - I_OI_SPREADSHEET, poor performance when reading more than 9999 record; section and see if you have any advise.
    Best Regards,
    Marjo

    Hi,
    I met this issue when I tried to write vaule to massive fields of excel range.
    And I solve this issue by using CL_GUI_FRONTEND_SERVICES=>CLIPBOARD_EXPORT.
    So, I think you may fix it in the same way.
    1. Select range in by the I_OI_SPREADSHEET
    2. Call method I_OI_DOCUMENT_PROXY->COPY_SELECTION
    3. Call method CL_GUI_FRONTEND_SERVICES=>CLIPBOARD_IMPORT
    Cheers,

Maybe you are looking for