Another question about query execution speed.

I know I should normally start with posting the query but my question will take a little different direction, so here is the deal:
We have an Apex application, there is a query on one of the pages that for certain users takes quite long, lets say 1min to 2 min, depending on how many records the query returns. The actual query varies depedning on some security settings and other parameters on the page - it's constructed by pl/sql function returning sql.
By querying v$sql I get the exact sql run by the user for who the query takes long time to execute.
Then I run that same sql statemt in Toad and it always takes 2 seconds to execute. For the user executing the same sql from Apex takes consistently 50-100 sec. My Toad is set to return up to 10,000 records and the query returns less than 500.
Can somebody help me make some sense of this?
George

Hi there
geo2 wrote:
We have an Apex application, there is a query on one of the pages that for certain users takes quite long, lets say 1min to 2 min, depending on how many records the query returns. The actual query varies depedning on some security settings and other parameters on the page - it's constructed by pl/sql function returning sql.To render a page, Apex does much some more stuff than just run the query. For instance, depending on the type of pagination you have enabled it needs to get the total number of rows to display "x to y of z" (or to display the message "more than nnn rows found"). Have you enabled debugging in Apex to be sure that most of the waiting time is spent on that query?
By querying v$sql I get the exact sql run by the user for who the query takes long time to execute.
Then I run that same sql statemt in Toad and it always takes 2 seconds to execute. For the user executing the same sql from Apex takes consistently 50-100 sec. My Toad is set to return up to 10,000 records and the query returns less than 500.Does Toad takes only 2 seconds to retrieve all rows or just to get the first top rows?
Luis

Similar Messages

  • ANOTHER Question about my iMac G3. Mac OS X and RAM

    Hey, I have ANOTHER question about my iMac G3.
    I know that I'm supposed to have the latest firmware updates for my iMac G3 running OS 8.1, which I do, but I read some where these firmware updates could only be updated if you're running OS 9.2. Yet when I run the firmware updater, it says my firmware is up to date. I just wanted to make sure this was correct because I just ordered an OS X 10.2 CD today, and I don't want my mac to be "dead" when I install it.
    My next question is how much RAM can my mac hold. It's an iMac G3 with a 233 mhz processor, if that makes a differemce.
    Again, thanks to the people who have helped me with my first Mac.

    hi there--
    unfortunately you require system 9.1 or 9.2 for the required firmware update 1.2 for your computer http://docs.info.apple.com/article.html?artnum=86117. so you'll have to install that if you want to install 10.2. it may work for you for a little while, but then you could possibly lose all your information. so i wouldn't advise attempting installing 10.2 without the correct firmware. [ : ) ]

  • Yet another question about super raid - GS70

    Yes, another question about Super Raid...I recently picked up the cheapest model of the GS70 on newegg which comes with 1 mSata SSD...just a mediocre one if I remember reading correctly.  I'm interested in using MSI's Super Raid once my warranty is over with and have been reading a couple posts here:
    1. Walk through of how to reinstall OS
    --> https://forum-en.msi.com/index.php?topic=167198.msg1224063#msg1224063
    2. I'll need a Super Raid card with links to get some, for about $100 each
    --> https://forum-en.msi.com/index.php?topic=171722.msg1252847#msg1252847
    3. I can't get Super Raid unless it originally came with it?
    --> https://forum-en.msi.com/index.php?topic=171185.msg1249640#msg1249640
    So what's the bottom line? Would I still be able to enable super raid in the future or am I SOL since it didn't come with it originally?
    thanks!

    The GT70 CAN come with an adapter that has 2 (on the older, GT70 0NX models) or 3 (on newer GT70 20X models) sockets for mSATA drives. It's an optional part, that takes place of the primary SATA drive in the notebook, and physically has a different part that connects to the motherboard. If it doesn't come with the SuperRaid adapter, then it just has support for a single 2.5" SATA drive.
    The GS70 on the otherhand, has this built into the motherboard and there is no swapping it out for a normal 2.5" SATA drive. You can only use mSATA drives (on those ports). The GS70 is meant to be an ultrabook, and therefore does not have the same ability as the GT70 to house up to 2 full size 2.5" SATA drives.
    That's really the main difference here. Without physically seeing a GT70 to see how the SuperRaid adapter works, it's slightly difficult to explain.
    But in the end, I wouldn't worry about the SuperRaid....The GS70 should have support for Intel Raid Management Engine, in which case that's all you really need.

  • Another question about gmail

    I just posted a question about adding gmail and it was answered.  Now, I have another question,  I added the new gmail account.  It shows in the mail preferences under accounts.  Incoming mail addressed to gmail comes to the Archive Box. But I still can't send mail by gmail because in the drop down menu on the email it only lists my other two accounts.  Gmail is not an option.  I highlighted gmail in the account list and it showed that as the account in use.  But, still there was no gmail option on the email form in the sender box.  How do I fix that?

    You need to look at and read over these very carefully.
    http://support.apple.com/kb/TS3276
    The link above is about sending issues.  The one below is about setting up or confiquring new e-mail.
    http://support.apple.com/kb/HT1277
    Good Luck to you and welcome to the Discussions.
    Don

  • A question about the execution order of java code

    I have a question about the order of the execution of java code.
    class myclass
    String str1 = new String("str1");
    static String str2 = new String("str2");
    static
    String str3 = new String("str3");
    myclass( )
    String str4 = new String("str4");
    static myfuntion()
    String str5 = new String("str5");
    When I new a myclass object, what is the order of execution about str1,str2.str3 ,str4?
    When I run myclass::myfunction( ) instead of new a myclass object what is the execution order about str1, str2, str3, str4, str5?
    Thanks

    hello,
    I think there may be one thing can't use println to make sure.
    class myclass
    static {  System.out.println("str1");   };
    myclass() { System.out.println("str2"); }
    then str1 appear before str2
    class myclass
    static {  String str1 = new String("str1"); };
    myclass() { String str2 = new String("str2"); }
    then
    str1 initilized before str2,
    str1 get the value str1----->after<----- str2.
    Am I right or wrong?

  • Another question about adding music to iPhone

    Apologies for yet another question regarding adding music to an iPhone but I am completely stuck.
    I bought a new laptop in January (it runs windows 8). I've authorised it and synced my phone to it before. I've used it to add music before.
    Lately I've just been buying music directly from itunes on my phone but I wanted to add some music from my older collection that is on an external harddrive.
    I've gone through the process of syncing the phone again, which has wiped whatever was on there. I made sure I'd ticked on the "manually manage music" box. 
    It's put all my purchased music back but it still will not let me drag and drop music from my external harddrive. When I hover over with the file it has "link" but it won't actually send the music to the phone.
    Is there a way for me to do this without putting music on to my itunes library? I don't like itunes and I definitely don't want to add the music to my laptop as it defeats the purpose of having an external harddrive! Sorry for such a long-winded explanation.

    Just to add... I've now tried adding music to the library (getting desperate here) and it's not letting me do that either. Just says 'link'.
    This is the most frustrating thing ever. Why are the simplest of tasks made so difficult? It seems like it only works if you buy the music from the iTunes store.

  • Yet another question about burners for iDVD 6

    It's not my intention to be redundant and the question about which DVD burners are compatible with the most recent release of iDVD has been asked a few times since iLife '06 was released at MacWorld last week. Yet, though Apple has announced it, why have they not posted a list of compatible devices?
    Or, is the onus on the manufacturers to certify that their burners are compatible with iDVD 6?
    In either case, has anyone determined if this information is available and, if so, where?
    Thanks.

    Or, is the onus on the manufacturers to certify that their burners are compatible with iDVD 6?
    Check with the support sections of the manufacturer's websites - after all, THEY are the ones trying to sell burners.

  • P35 Neo Questions about USB boot speed (New query)

    i see it's an old topic but i have the same problem with slow USB Boot on a MSI P35 Neo2-FR mainboard.
    i have tried something like 5 different USB drives and all are the same. the problem is when it's tring to boot from USB. there is some missing support for USB booting from BIOS , i don't know.
    i had a BIOS from 2008 and i have updated to the latest version but nothing solved my problem.
    i have tried to boot from USB with a linux live environment, windows live CD or i have tried to install windows from USB drive. all of them with very slow reading (instead of max 2-3 min loading time it takes almost 20-25min at least..).
    when the system (windows) loads up the speed of reading the USB drives increse dramatically and all things gets back to normal.
    with the same USB drive on several computers all the above works without any delay or very slow reading. so this i think it's the motherboard or the motherboard BIOS but i don't have a clue on how to fix this issue.
    any help will be more than appreciated. thank you.

    AngelTudorache please read the Forum Rules and don't resurrect nearly 4 year old threads.  >>Please read and comply with the Forum Rules.<<
    Please post your full system specs >>Posting Guide<<
    Do you use the case USB ports or the MB USB ports ? Have you tested the MB USB ports by disconnecting the case USB headers ?
    Suggest you transfer a large file from the HDD to a USB device or from a USB device to the HDD and monitor the transfer speeds. Anything between 15 and 30mb/s is normal for USB2.

  • Another question about using objects in SQL queries

    Hi gurus, I need your thoughts on this:
    I have created generic object type "tree" - the constructor takes as a parameter sql query returning "node_id" and "parent_node_id". As a tree - the object has all related to a tree structure member functions and one of them is "oldest_relative" (the tree may not be fully connected - it may be more like a set of many trees, so it's not necessary all nodes to have the same root).
    I also have departments table with the following fields: department_id, parent_department_id, department_name,...
    all records in the table w/out parent_departments (parent_department_id is null) are considered divisions.
    Now if I run the following query:
    SELECT "DEPARTMENT_ID", "PARENT_DEPARTMENT_ID", "DEPARTMENT", tree('select department_id "node_id", parent_department_id "parent_node_id" from departments').oldest_relative("DEPARTMENT_ID") "DIVISION_ID" FROM departments
    my question is: Is the tree object created for every row or does Oracle somehow caches the object since the object itself is not changing but only the parameter for the oldest_relative member function.
    The table only has a few hunderd records and I can't see much of a difference in the execution time btw the query above and query like this:
    SELECT "DEPARTMENT_ID", "PARENT_DEPARTMENT_ID", "DEPARTMENT", b.t.oldest_relative("DEPARTMENT_ID") "DIVISION_ID"
    FROM departments left join (select tree('select department_id "node_id", parent_department_id "parent_node_id" from departments') t from dual) b on 1 = 1
    where the object is clearly created just ones. (there is probably a better way to do it instead of this join)
    Pls elaborate
    George

    Hi, TREE is not a function but PL/SQL object type I have written representing tree structure. The Oracle version is 10g.

  • Tech question about installation, cabling, speed, ...

    The gentleman who owns the company I work for has a home office with regular ADSL. He only gets about 2Mb from this line and would like it faster if possible.
    I went on the BT checker page and it said Infinity was available and he could get 30Mb download speed. Please can someone tell me what end to end this check is conducted over? Does the test go all the way to the master socket in the house or does it just test between the 'exchange' and the BT box at the end of the street?
    The reason I ask is that he has 50-100m of old overhead cable going in to his property (big drive/garden) and this is the main reason he has always cited for the slow bandwidth issue on ADSL as neighbours who live closer to the BT box fair much better for ADSL speeds and a neighbour who recently had a new long overhead cable installed also did much better.
    I am concerned that if I order this product for him the speeds will be far lower than those promised because of the poor quality cables between his house and the BT box.
    Please can someone advise?
    Many thanks in advance. 

    mjwilde wrote:
    Thanks for your responses guys.
    Infinitechris: the lady in the BT call centre I spoke to told me that it was the specific line in question that had been tested, although when I pressed her on the details of this (i.e. was it tested to the BT box or to the master socket in the house) she first said one, then later said the other. When I kept asking about this, she just kept telling me I didn't get it as it was fibre optic broadband. When I said the last 100m was an overhead cable and most definitely not fibre optic, she insisted that the line had been tested and the speeds she told me were the speeds I would get.
    PLC: His actual usage will be quite low - just a few GB per month but what he wants is for things to happen quickly when he is online.
    If you are just talking emails /web browsing, then he is hardly going to notice a speed improvement.
    If you are talking Downloading large files/ streaming/ youtube, Iplayer etc then yes you will notice the difference
    toekneem
    http://www.no2nuisancecalls.net
    (EASBF)

  • Another question about upgrading RAM on G4 iMac

    I know that there are numerous threads on this forum about upgrading RAM and I am sorry to have to open another one but, having read many of them, I am still confused!
    I have unopened copies of Leopard and ILife 08 that I am planning to install on my 17-inch 1GHz G4 iMac with 768 MB of RAM (256 MB in the factory slot and 512 MB in the user accessible slot). I know that this model does not support all the functions of these programs but I am currently running Panther and the very first iLife so I think it's time for an upgrade!
    Apple states that this model supports up to 1GB RAM so I have been thinking that in order to get the best out of the new software I should upgrade to 1GB RAM. My questions are:
    1. Do I need to upgrade or is the existing RAM of 768 MB likely to be sufficient?
    2. If I upgrade, how easy is it to add RAM to the factory slot? I have searched but can find no instructions on this here or on the Apple website which implies that this is not recommended.
    3. Several threads on this forum seem to suggest that, in order to avoid having to mess with the factory slot, it is possible to put 1GB RAM in the user accessible slot and leave the factory slot well alone, resulting in total RAM greater than the maximum recommended by Apple. Is this correct or have I misunderstood?
    Thanks in advance.

    1. Do I need to upgrade or is the existing RAM of 768 MB likely to be sufficient?
    That will probably be sufficient. You could always install and run both Leopard and iLife '08 and see if you feel that they are working OK before buying any RAM.
    2. If I upgrade, how easy is it to add RAM to the factory slot? I have searched but can find no instructions on this here or on the Apple website which implies that this is not recommended.
    Apple does not post the directions because this is not considered something that a user can do by themselves.
    You can see the process at www.xlr8yourmac.com/systems/iMacg4/imacg4takeapart.html
    3. Several threads on this forum seem to suggest that, in order to avoid having to mess with the factory slot, it is possible to put 1GB RAM in the user accessible slot and leave the factory slot well alone, resulting in total RAM greater than the maximum recommended by Apple. Is this correct or have I misunderstood?
    That is correct. You could replace the 512 MB in the user accessible slot with 1 GB to provide a total RAM of 1.256 GB.

  • Yet another question about zone forwarding

    Hi guys!
    thanks for reading. I have a question related to create a new forward zone. I am not pretty sure if I have to use a forward zone
    or create a new IN-ADDR.ARPA forward zone.
    Now I have my DNS servers answering about my primary zone, let say mycompany.es. For any requisites related to my applications,
    I have to forward all dns queries related to, let say this domain: onedomaintoforward.com (and, all subdomains)
    to a different dns server located on a machine on the internet. The main reason for this is the application that use this domain
    works with a dedicated internet-line, so the dns queries must be resolved to point to the servers going throught this line,
    with specific IP routes, etc).
    So, for example, the query customerzone.cp.onedomaintoforward.com must be forwarded to this server (I have the IP address
    for this server).
    So, should I create a forward zone or a new in-addr.arpa forward zone? I am confused. I think that its the second one,
    mainly because I set up a new forward zone but its seems that it doesnt works.
    Could anyone give me a pointer to this?
    Thank you so much!

    In article <[email protected]>,
    Antoniogutierrez wrote:
    > This domain its real, but only works throught our dedicated line. In
    > our routers there is specific
    > routes for these net segments. For this reason, all the queries related
    > to this domain
    > have to be "redirected" to this DNS, because it will resolved Ips from
    > the dedicated line.
    So would I be correct that this domain has public IPs related to it, but
    that from where you stand, you are to point to a different/private set of
    IPs? Or is it that those public IPs need to be separately routed?
    Either of those options could be handled with some static IP routes in
    the right places.
    Are the public DNS Name Servers for that domain the same ones you need to
    point to? At the same IP addresses?
    Which OS is your DNS host running? NetWare of what version or OES of what
    version?
    One thought might be for you to set your DNS server as a secondary of
    those primaries and do zone transfers.
    > Its a little complicated, for this reason I am a little confused about
    > how to deal with.
    Complicated confusion often means the best learning experience, and once
    past the main hump, is usually pretty fun, so lets see if we can get you
    there.
    Andy Konecny
    Knowledge Partner (voluntary SysOp)
    KonecnyConsulting.ca in Toronto
    Andy's Profile: http://forums.novell.com/member.php?userid=75037

  • Measuring query execution speed

    Is there a way to measure how long it takes to execute a query? I have tried recording the time just before and after a call to execute() but this is not giving usable results as it depends on so many other things. What I am after is some sort of database independent query timing ability. Is it possible in JDBC?
    Thanks,
    -JT

    Using JAMon I time all my jdbc and also how long each individual query takes. Got to http://www.fdsapi.com and go to the live demo. This allows you to enter queries adn then go to the JAMonAdmin page and you will see a sortable html report that allows you to view the statistics.
    JAMon is flexible due to the fact it just takes a String. That string can represent anything such as a specific query (in sybase for example a stored proc), a page hit, a method call or anything else that makes sense to you. It is a simple stopwatch based API that couldn't be easier to use. Simply import the jar and call start() and stop(). What's nice about this it is flexible enough to monitor more in your app than queries, such as jsp pages, and it is fast enough to run in production.
    There is a servlet filter at the site that keeps stats for any pages within your web site and you don't have to do any code to get this capability. JAMon keeps track of hits, avg time, max time, min time, concurrency and scalability.
    // Note it is a simple 2 method api.  Every time this metho is called new aggregate stats will be gathered, and displayed via JAMonAdmin.jsp
    public List getEmployee(String empID) {
      Monitor mon=MonitorFactory.start("com.mypackage.Employee.getEmployee");
       try {
           ....my code...
        } finally {
          mon.stop();
    }steve - http://www.jamonapi.com - a performance tuning API
    http://www.fdsapi.com - a simple api for generating xml and html

  • The simplest question about query in multimedia

    Hi i write in command line
    DECLARE
    score DOUBLE PRECISION;
    myimage SI_StillImage;
    myotherimage SI_StillImage;
    myAvgColor SI_AverageColor;
    BEGIN
    SELECT fotka1 INTO myimage FROM fotkiord WHERE fotkaid1=71;
    myAvgColor := NEW SI_AverageColor(myimage);
    SELECT fotka1 INTO myotherimage FROM fotkiord
    WHERE fotkaid1=72;
    score := myAvgColor.SI_Score(myotherimage);
    DBMS_OUTPUT.PUT_LINE('Score is ' || score);
    END;
    and I get from script output
    anonymous block completed
    Where i can find the real output of my query ??

    ok i answerd my own question
    create or replace
    PROCEDURE "PROC2"
    pod_id IN fotkiord.fotkaid1%type,
    pod1_id IN fotkiord.fotkaid1%type)
    IS
    score DOUBLE PRECISION;
    myimage SI_StillImage;
    myotherimage SI_StillImage;
    myAvgColor SI_AverageColor;
    BEGIN
    SELECT fotka1 INTO myimage FROM fotkiord WHERE fotkaid1= pod_id;
    myAvgColor := NEW SI_AverageColor(myimage);
    SELECT fotka1 INTO myotherimage FROM fotkiord
    WHERE fotkaid1= pod1_id;
    score := myAvgColor.SI_Score(myotherimage);
    DBMS_OUTPUT.PUT_LINE('Score is ' || score);
    END ;

  • Another question about multiple copies

    I've seen several others posting questions lately about making multiple copies, but my question is just slightly different. I'll be making an iDVD project for our 5th Grade Recognition at school. Obviously, I'll be making it on my Mac at home. However, once it's finished and I have my final DVD, I'm going to need to make over 50 copies.
    Last year, when I did the presentation as a Powerpoint show, it was easy enough to use multiple (Windows) computers at school to duplicate. There are 4 computers that I used to just rotate CD's in and out of to make copies.
    Will I be able to use a Windows machine to make copies of an iDVD disk? I know that the computers can burn DVD's, so that's not an issue. I can't remember exactly which programs the computer have. I believe that one is Sonic something. The one that I used for CD's was IRecordNow (or something like that).
    Is there any "protection" placed on the iDVD disk that will prevent me from placing the iDVD into the drive and choosing "copy" in whatever program that I use?

    Is there any "protection" placed on the iDVD disk that will prevent me from placing the iDVD into the drive and choosing "copy" in whatever program that I use?
    No. Only DVDs made in a production house have copy protection applied.
    (31727)

Maybe you are looking for

  • How to pass an integer parameter from main report to subreport?

    I don't understand why this isn't working, but I have a main report with parameters: StartDate=datetime, EndDate=datetime, Program=text, ChartType=text. In this RDL, I have a chart with Action configured on this bar chart series.  The Action expressi

  • Error 200500 AppleTV MacBook Pro (2012) OS 10.8.2

    Brand new AppleTV3 on latest MacBook Pro Retina Display. AT plays YouTube etc fine and also TV shows downloaded from itunes directly from AT into cloud. AirPlay mirroring symbol shows up in both the tool bar and in itunes on the MB but neither will c

  • Cannot hear singing - only muffled background music

    I downloaded some new cd's to my computer, synced it, and forgot to hit the disconnect button on my itunes, but my computer was off and i unplugged it anyways. I don't think this is the problem seeing how i've done that before w/o an issue, BUT, now

  • Unknown error 400 when updating apps through iTunes.

    I have been getting an error message 400 when trying to update apps from the app store on my macbook. I can only update them from my iphone. I am able to purchase and download the original apps as well as music and movies. Are there any fixes for thi

  • Regarding material master record

    Hi guru's material master records are created by MM consultants or SD consultants. can u please give me the reply.as early as possible