unnecessary SQL queries for ViewObject used in different tab

In my application, I have a table A in the first tab and table B in the second tab.

Sometimes when I work as a user with table B in the second tab, the ViewObjectA for table A is executed.

Of course this ViewObjectA execution is absolutely useless, because I work in another tab and I don't don't even see table A.

Unfortunately, the query takes a long time and it makes the application slower.

Question: why the ADF runs the query for a table that is not visible and the user accesses not?

Is it possible to prevent it?

A note on the configuration that may be linked to the problem:

The ViewObjectA has an implementation customized with debug messages (that's how I discovered the ViewObject is exectuted).

Due to the limitation of the DB, I have configured my pool ApplicationModule instances of timeout after 120 idle seconds (because the DB does not like the many connections and long-term).

I also found that after the expiry of the ApplicationModule, a new instance of ViewObjectA is created (Yes, it should according to the ViewObjectImpl API).

It seems to me that the unnecessary ViewObjectA execution happens after this new creation of instance of ViewObjectA.

Well, the execution of the query of a VO is part of the creation of a VO.

You can try to adjust it for example, you add a where clause such as 1 = clause: bindVar' and init the bindVar to 0 so that the query is performed from the user interface (see JDeveloper: obstacle to the return of the games to outline on the loading of the page of VO using the binding variable |) JDev & amp; ADF Goodies).

Or follow Andrejus Baranovskis Blog: Oracle ADF Tuning: prevent execution of SQL queries during the loading of the Page

Timo

Tags: Java

Similar Questions

  • SQL queries for the date and year

    Hi friends,

    I have a named view - item_sales with 4 columns

    Item code

    Name of the element

    Transaction_YYYYMM (Date stored in a format YYYYMM)

    QTY_RECEIVED

    QTY_SOLD

    Sample data is

    ITEM_CODE POINT NAME TRANSACTION_YYYMM QTY_RECD QTY_SOLD

    TSHIRT 201307 3000 2000 AX

    TSHIRT AX 500 2000 201308

    TSHIRT 201309 1000 3000 AX

    CX 201307 3000 2000 XLSHIRT

    XLSHIRT CX 201308 3000 2500

    CX 201309 3000 2500 XLSHIRT

    END OF EACH MONTH I'LL RUN THIS QUERY TO FIND OUT THE DETAILS BELOW

    1. TO FIND NOM_ELEMENT WISE - QTY_RECEIVED AND QTY_SOLD (FOR THE CURRENT MONTH - EXAMPLE SEP)

    2. TO FIND NOM_ELEMENT WISE - QTY_RECEIVED AND QTY_SOLD (EXAMPLE EXERCISE OF JAN TO SEP)

    OUTPUT FOR SEPTEMBER MONTH LOOK LIKE THIS

    SEVEN MONTHS JAN TO SEP

    ITEM_CODE NOM_ELEMENT QTY_RECEIVED QTY_RECEIVED QTY_SOLD QTY_SOLD

    TSHIRT 1000, 3000, 6000, 5500 AX

    CX 3000 2000 9000 7000 XLSHIRT

    Pls advise me how to write queries for this

    RDK

    Hello

    This is called a Pivot, and here's a way to do it:

    WITH got_display_yyyymm AS

    (

    SELECT TO_CHAR (ADD_MONTHS (SYSDATE-1)

    , "YYYYMM.

    ) AS YYYYMM

    OF the double

    )

    SELECT i.item_code

    i.item_name

    SUM (CASE

    WHEN i.transaction_yyyymm = d.yyyymm

    THEN i.qty_received

    END

    ) AS month_received

    SUM (CASE

    WHEN i.transaction_yyyymm = d.yyyymm

    THEN i.qty_sold

    END

    ) AS month_sold

    SUM (CASE

    WHEN SUBSTR (i.transaction_yyyymm, 1, 4)

    = SUBSTR (d.yyyymm, 1, 4)

    THEN i.qty_received

    END

    ) AS year_received

    SUM (CASE

    WHEN SUBSTR (i.transaction_yyyymm, 1, 4)

    = SUBSTR (d.yyyymm, 1, 4)

    THEN i.qty_sold

    END

    ) AS year_sold

    Item_sales I have

    CROSS JOIN got_display_yyyymm d

    I.item_code GROUP, i.item_name

    ORDER BY i.item_code, i.item_name

    ;

    If you would care to post a small example of data (CREATE TABLE and INSERT statements) and the results desired from these data, then I could test it.

    The subquery got_display_yyyymm digit which is the previous month; It is not to change anything from month to month.  If you run the query in October 2013, then YYYYMM Gets the value '201309'.  If you run it in January 2014, then YYYYMM will be '201312'.

    As posted, it will work in Oracle 9.1 or higher.  The SELECT... PIVOT function that was introduced in Oracle 11.1 would not help in this problem, so you do not miss anything using Oracle 10 in this case.

  • SQL queries for reports help: need to reverse the data in the column in columns [O

    Hi all

    I'm looking for help in writing SQL, where I need to reverse the data in the columns column.

    My data in DB is as below.

    VALUE OF NAME OF MONTH
    Jan-10 M1 5
    Jan-10 M2 8
    Jan-10 M3 9
    Feb-10 M1 4
    Feb-10 M2 6
    Feb-10 M3 2
    M4 10 Feb 10
    M1 10 Mar 21
    Mar-10 M2 6

    Power required for the declaration will be like:


    MONTHS M1 M2 M3 M4
    Jan-10 5 8 9
    Feb-10 4 6 2 10
    21 Mar-10 6

    How can I do this using SQL. [ORACLE 10g]?

    I can make use of server Oracle BI also.

    Please help me on this...

    I think this is wrong forum to ask this question. You want to do it in OBIEE or at the DB level. In oBIEE you can do in a table privot view.

    Thnaks,
    Knani

  • See the SQL queries used

    Hello.

    I use gR 10, 3 of the UMC.

    Is it possible to see all the sql queries that are used by the Complutense University of Madrid.

    In my case, I've defined a query in Sitestudio, which looks like this
    dDocType <matches> 'someType'
    I want to know the SQL of the query.

    Thanks for all the answers
    Brahim

    Hello

    Navigate to Administration - System Information Audit - tracing of the Sections - active Sections.

    Put systemdatabase, searchquery and enable detailed full tracing.

    This will give you the sql queries running for all actions on the Complutense University of MADRID.

    Systemdatabase gives all of the query sent to DB by UCM.

    SearchQuery gives the query when the clause are formed during a search.

    Thank you
    Srinath

  • TopLink grid 11g: conversion of SQL queries to the filters of consistency

    I would like to know how efficient the conversion of SQL queries for filters of coherence is wen search an object in the cache coherence. TopLink does something as instruction cache cache filters consistency as well? In this regard, you have number of performance?

    Thank you very much!

    Ming-Wen

    TopLink grid currently has a rudimentary filter cache that allows TopLink to only translate NamedQuery once. This allows TopLink grid to reuse the same filter on subsequent runs of this NamedQuery.
    -Gordon

  • How to find the primary key columns in the tables in MS Access using SQL queries

    How to find the primary key columns in the tables in MS Access using SQL queries

    Hello

    This is the forum for Windows Vista programs related issues.

    For better assistance, please try instead the Forums in SQL Server .

    Thank you! Vincenzo Di Russo - Microsoft MVP Windows Internet Explorer, Windows Desktop Experience & security - since 2003. ~ ~ ~ My MVP profile: https://mvp.support.microsoft.com/profile/Vincenzo

  • I looked through the video tutorials for CS6 and can't find any help for PHP using SQL.

    Where is a good place I can go to learn more about the use of different languages as html and dreamweaver.  Is there a service that adobe offers that I could buy that would take me from recruit all the way to professional with a good structure, easy to use, such as adobe tv but more advanced and deeper?  I am building a Web site with a log in page and check.  I have the HTML part down pretty well, but need help to write php scripts and the use of SQL for storing user information

    I moved this to the main Dreamweaver support forum.

    In response to your question, you should be aware that PHP in CS6 Dreamweaver server behaviors use original MySQL functions that are should be removed from a future release of PHP. Server behaviors have been deleted from the CC of Dreamweaver. If you plan to create a website using PHP and MySQL, do not rely on Dreamweaver server behaviors. You must instead use MySQLi (improved MySQL) or PDO (PHP Data Objects) .

    If you are looking for video tutorials, you might be interested in the class I created for lynda.com. As a beginner, a good starting point would be Introducing PHP or PHP for Web designers (there are several videos of the sample that you can watch for free on my site). Both courses have been recorded on Dreamweaver (PHP for Dreamweaver CS6 Web designers), presenting the PHP on Dreamweaver CS5.5. PHP for Web designers shows how to connect to MySQL with MySQLi. You need a subscription to lynda.com to watch full courses, but you can get a free seven day trial by following the links on my site.

    If you don't want to commit to a subscription service, I also wrote a book called PHP Solutions, which covers MySQLi and PDO in depth. It also shows how to build a login system. At the moment, the second edition is available, but a third revised edition is due to the on sale in December.

    There are also a lot of free resources on the web you can find. The important thing to beware of is that a lot of old documents is based on the original functions of MySQL. Regardless of the resource you use, make sure it shows how to use MySQLi or PDO.

  • How to use the value of the select in SQL queries list

    I have a list with the list of states (P1_STATE) in Page 1. When I send the page, I get the VALUE of P1_STATE in Page 2 to the format: DC:AS:AK. I use the application to display the form in the Page 2 below.

    Select *.
    of STATE_REF
    where IN location_id (: P1_STATE)

    Now the format of P1_STATE will not work in the query. So it's not fetch all results. Is there a way in which the values of the selection list can be used in SQL queries. Thanks for the help.

    Hello

    Try something like:

    select *
    from STATE_REF
    where ':' || :P1_STATE || ':' LIKE '%:' || LOCATION_ID || ':%'
    

    Andy

  • While creating a slide show with pictures, can you assign music to a specific set of photos? I would use 5 different pieces of music for every 5 parts of my slide show.

    While creating a slide show with pictures, can you assign music to a specific set of photos? I would use 5 different pieces of music for every 5 parts of my slide show.

    No, you can't.  One solution is to create 5 different slideshows and export them to the office where you can bring together them in a single quicktime movie file and use it.

    If you have a copy of iMovie 6 HD, it can be hacked to work with El Capitan. With it you can assign exactly music groups of slides in the slide show:

  • When you subscribe to an application using a different email for your apple ID

    When you subscribe to an application using a different email from your apple-ID

    Will be the details of this figure yet the subscription to (and editable) under your apple ID?

    Im having trouble cancel the payment for the registration of an application (I think that's why) I used a name user ad nother email what is my apple ID.

    Can someone help me?

    Greetings Ninabnina,

    Thank you for using communities Support from Apple!

    From your question, it sounds like you subscribed to a service of an application using an in-app purchase. If this is correct, this in-app purchase or subscription would be bound to this specific Apple ID.

    Do an in-app purchase

    You can make in-app purchases in applications that offer.

    You must enter your password Apple ID to make in-app purchases. You have two options to password to choose from with in-app purchases:

    • Always demand: when you make a purchase, you will be always asked to enter your password, even if you are signed in with your Apple ID.
    • Ask after 15 Minutes: when you make a purchase, you will be asked to enter your password only once every 15 minutes.

    You can also configure Touch ID to make in-app purchases. Learn how manage your password preferences.

    If you have problems by performing an in-app purchase, make sure that your payment information is up-to-date.

    On in-app purchases - Apple Support

    If you think you can make the purchase with another Apple ID, you can connect to this ID and view your purchase history to confirm.

    See your purchase history in iTunes on Mac or PC - Apple Support store

    If you just need help the cancellation of the subscription, the following article will explain this process.

    View, change or cancel your subscription - Apple Support

    If you do not know what Apple ID the purchase or subscription was made on, you can try to have reported the problem directly to our support of iTunes Store by using the following link.

    Report a problem with an item purchased from the iTunes Store, App Store, Mac App Store, and iBooks Store - Apple Support

    If you still hit roadblocks, you can contact the iTunes Store support directly and they should be able to help understand this situation and get these cancelled subscriptions.

    Apple - Support - selection

    Have a great day!

  • I want to use two different images for a button state...

    I want to use two different images for a button state... [Normal] grayscale media social icon outline [rollover] color media social status icon.

    Option 1:

    Create a status button which becomes transparent in the mouse above.

    Have the other underneith of the image.

    Option 2:

    Create a status button with a background image.

    Then select a different background image for each State.

    You can also do cool stuff like Sprite buttons too.

    Example: Adobe Muse Social Sprites by MuseThemes

    Widget page: Adobe Muse Social Sprites by MuseThemes

    Themes of Muse had a great video about these doing just now.

  • If I buy the adobe cc then can I use it on several laptops at the same time? I use two different computers for my work. as a photoshop and illustrator, for example.

    If I buy the adobe cc then can I use it on several laptops at the same time? I use two different computers for my work. as one for photoshop and Illustrator for example.adobe

    This excerpt from: terms of conditions of use Adobe software should help to clarify the terms for you:

    ..... You can activate the software on up to 2 devices (or virtual machines) at the same time, if these activations are associated with the same Adobe ID for the same person, except http://www.adobe.com/go/activation_fr. However, you cannot use the software on these devices simultaneously.

    You can also see:FAQ: where can I find the terms of membership and the terms of use?

  • Help! I used a different email address for my subscription of CC as my Adobe email address!

    Inadvertently, I used a different email address when I paid for my subscription of clouds that I use to connect to the Adobe forums. The result is that the programs that I have installed are 30 days in trial mode. Could someone explain a work around for this?

    I saw that someone referenced this page as a possible solution in this forum, but I don't see how this assistance: https://helpx.adobe.com/creative-cloud/kb/asks-serial-number-error.html

    Once you disconnect, change the email ID and then reconnect.

  • SQL queries

    Dear all,

    We hope that all are doing well. I need your help, I want to find all sql queries executed in the month 1 in my oracle, verification of the database database is disabled.

    I tried v$ sql, but it gives only spent 15 days sql queries executed.

    I'm looking for 1 month? your help will be appreciated, thanks in advance.

    OS: RHEL 6.1

    DB: 11.2.0.3

    Kind regards.

    If you use more than one log archiving then use following code for example:

    Start

    sys.dbms_logmnr.add_logfile (nom_fichier_journal => ' /Archivelog/1_9745_771967668.dbf',options-online sys.dbms_logmnr.new).

    sys.dbms_logmnr.add_logfile (nom_fichier_journal => ' /Archivelog/1_9746_771967668.dbf',options-online sys.dbms_logmnr.addfile).

    sys. DBMS_LOGMNR. Start_logmnr (options-online sys.dbms_logmnr. DICT_FROM_ONLINE_CATALOG);

    end;

    /

  • How to find the sql queries executed in one day with the sql and runtime text

    Hi Experts,

    Please tell me the sql query to find out the queries executed on a particular day and the runtime and the sql text of the query.

    Please reply urgent.

    Thanks in advance

    Database instance 'A' may have run 100 SQL queries today.  As for the instance of database 'B' could have exploited queries SQL 1 million today.  Instance of database 'B' to 'keep' the 1 million SQL statements - in memory or on disk do you expect?  Of course not.  There the age or flush or invalidate memory SQL statements.  He can't keep them on the disk (imagine running a completely different set of 1.2million SQL statements tomorrow and 1.3 the next day).

    AWR and StatsPack can make counts the number of "n" top of the page ("n" default to 30) SQL statements which are still present in the cache of the library (not years, rinsed, invalidated) when a snapshot was taken.  They can't declare "all" SQL statements.

    To return to your needs.  WHY do you need all the SQL statements?  Or are there only certain operations specific SQL would you be interested?  Could they have been treated by allowing audit (for example, UPDATE and DELETE with EXTENDED verification instructions)?

    Hemant K Collette

Maybe you are looking for

  • Dv2804tx HD partition

    I just got my book of after-sale service for repair, the problem was the motherboard, so that they succeeded him and installed a new operating system and drivers. As I came home and use it I discovered that there is only a single player who is C with

  • Error 80070005 "Windows cannot check updates"

    Can someone help me solve this problem?

  • Webcam VX-700 does not connect on the Yahoo chat

    The Microsoft VX - 700 webcam works fine on MSN chat, but refuses to work on Yahoo. Is there anyway I can get this stuff to work on both when I use either of these chat clients?I tend to use both while also but don't really want two cams.

  • Help! Explorer.exe not found entry point

    I restored my computer to an earlier state to undo changes I had made, and after the computer has restarted and I get my password I get a message box with the header "explorer.exe Entry Point not found". Theres a lot of coding blurred any in the mess

  • BlackBerry, BlackBerry Passport - thank you

    I can't find an email address to thank BlackBerry. So, I'll post here in the hope that BlackBerry reads this. I have been using BlackBerry for 10 years. I just got my new passport BlackBerry with the new OS The characteristic rapid in the hub to file