Functions slowing down performance question

Hey there.
I've got a query that really slogs. This query calls quite a few functions and there's no question that some of the work that needs to be done, simply takes time.
However, someone has adamantly told me that using functions slow down the query compared to the same code in the base SQL.
I find this hard to believe that the exact same code - whether well written or not - would be much faster in the base view than having a view call the functions.
Is this correct that functions kill performance?
Thanks for any advice.
Russ

There is the performance impact of context switching between SQL and PL/SQL engines. Pure SQL is always faster.
SQL> create or replace function f (n number) return number as
  2  begin
  3    return n + 1;
  4  end;
  5  /
Function created.
SQL> set timing on
SQL> select sum(f(level)) from dual
  2  connect by level <= 1000000;
SUM(F(LEVEL))
   5.0000E+11
Elapsed: 00:00:07.06
SQL> select sum(level + 1) from dual
  2  connect by level <= 1000000;
SUM(LEVEL+1)
  5.0000E+11
Elapsed: 00:00:01.09

Similar Messages

  • Does loading too many classes into jvm slow down performance?

    hi all,
    does loading too many classes into jvm will slow down performance. Our application is CPU bound, if we use any framework we need to load all the classes related to that framework in JVM. Does this have any effect on the performance of the JVM.
    thanks and regards,
    akmal

    does loading many classes into jvm slow down performance.It will increase the time it takes for the JVM to load your application.
    Our application is CPU boundThe time it takes the JVM to load your application is not likely to be an issue for you then.

  • Slowing down video - question

    What is the best way to make video that has been slowed down look smooth upon playback?

    Use Motion's Optical Flow feature to create the slow-motion.
    -DH

  • Do apps running in the background drain battery, slow down performance, or use cellular data?

    I have heard that if you don't kill the apps running in the background, they will drain your battery, slow your other apps down, and could be using your data without any warning.  I've looked all over the place for a definitive answer to this, but different people and websites provide conflicting responses and I haven't found any useful information regarding this issue directly from Apple.  If anyone knows whether or not having apps constantly running in the background is harmful in anyway (and has a credible resource to back up their claim) let me know and provide a link to the answer if possible.

    What do you mean 'running in the background'? Something that is 'running' will definitely use battery, nothing runs on air or whatever. If an app uses data while it's 'running' then it will use data. Why do you need a link, it's common sense isn't it? Slow the phone down? That I can't say definitively, but it stands to reason that it will. 

  • Leopard slowed down performance on my G5

    Not sure how to fix this, need some basic advice. I just loaded Leopard into my Power PC G5 and it's moving through applications, etc like molasses in January. Do I need to upgrade anything?

    Hi! A couple of things may be slowing it down. One is spotlight which may be indexing drives and also Time Machine which takes a few hours for the initial backup. There could also be some temp files created that haven't cleared themselves. I usually recommend letting it run for at least 24 hours without sleeping to give it time to catch its breath. You could also have some apps that aren't Leopard compliant but those should have been checked for compatibility before loading Leopard. Usually though incompatible apps produce worse results than just a general slowdown. Tom

  • Bootcamp slowing down performance

    Hi all,
    I installed Windows 7 ultimate using bootcamp the other night, and I've been finding that on the mac side of things, things have gotten a bit slow. Loading applications, including native ones such as system preferences take up to 10-20 seconds for it to open up. I've reset the SMC, PRAM, fixed disk permissions while seeing not a huge amount of improvement.
    Does anyone have any experience with this? I'm running 10.6.8 and my MBP is a early 2011 model.

    Windows and OSx are in separate partitions and therefore do not affect each other when running. That said, there have been other posts in the Boot Camp forum from people who say they experience the same symptoms as you.
    My suspicion is that you are running short on hard drive space since creating the Boot Camp partition. How much free space do you have in your OSx partition?

  • Many Queries slowing down performance?

    Hi,
    Our query response time is very bad, sometimes 30min to execute a query!
    I noticed that there have been created a few hundred queries on the respective MultiCube.
    Is the bad performance linked to the number of queries?
    What advise can you give to speed up performance?
    Many thanks!!
    Sabine

    hi Sabine,
    take a look
    oss note
    557870 'FAQ BW Query Performance'
    and 567746 'Composite note BW 3.x performance Query and Web'.
    Prakash's weblog
    /people/prakash.darji/blog/2006/01/27/query-creation-checklist
    /people/prakash.darji/blog/2006/01/26/query-optimization
    BW Performance Tuning Knowledge Center - SAP Developer Network (SDN)
    Business Intelligence Performance Tuning [original link is broken]
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3f66ba90-0201-0010-ac8d-b61d8fd9abe9
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cccad390-0201-0010-5093-fd9ec8157802
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ce7fb368-0601-0010-64ba-fadc985a1f94
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c8c4d794-0501-0010-a693-918a17e663cc
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/064fed90-0201-0010-13ae-b16fa4dab695
    hope this helps.

  • Infopath dataconnection slow down performance

    Currently I am working on one project, and I created InfoPath form , that form has 20 to 30 fields.
    Out of that 15 are dropdowns, and for those 15 dropdowns I have created secondary connections(11)
    Due to so much of these connection My form taking much time to load,and same time there will be much more users will load forms, so it is creating much performance issue.
    is there any way that my connections will be cached for all users or something like that .? or how to improve performance in this case ?
    Please mark answer , if you think answer is helpful or correct.

    Data queries are ALWAYS performed live... depending on the query, they may be performed during form load, or on demand (which may help if you are able to provide filters during lookup)... but no, there is no result caching.
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • Copy and Paste Function Slow Down

    Dear Expert,
    Our Company have upgraded to SAP B1 2007A in April 2009, since then our users face problem in copying text in all modules.  We used to right click at a particular field, e.g. customer reference number, then right click to the paste into remarks field, but the system will hang for few second before it pop up the dialog box for you to select.  It also does not allow to use the shortcut key, i.e. CTRL C or CTRL V.
    Do anyone of you face such problem before?  If so, please share yoour experience how to solve the problem.
    Thank you.
    Regards,
    Ng

    Have you upgraded SQL server from 2000?  You may also check this thread:
    SQL 2005 with database compatibiltiy level set to 80

  • Does re-installing system slow down the HD?

    Hi
    My MBP came back from repair with a new HD and OS 10.5 already installed. For various reasons I might want to wipe it and re-install the system software. But does this process of re-installing the system leave any 'debris' on the drive which might slow down performance in the long run? If so I may leave it, but it's a question I've always wondered about - when you re-install does the drive go back to being 'like new' again or is there a gradual accumulation of code which just adds more clutter?
    Thanks for any help
    John

    If the OS or an app or whatever needs 10GB (for example) of free space, what does it matter if it's 10GB out of 100GB or 10GB out of 1TB?
    I don't think it matters.
    I thought that's what MacRS4 is saying
    I did not understand it to be. The assertion was:
    The 85% corruption thing fassumes a relationship of the largest file types to the size of the physical drive.
    It does not. It assumes that the directory expansion varies with the total amount of data that needs to be stored. The 85% refers to the smallest amount of contiguous disk capacity needed to permit the file system to lay down new pieces of the Extents Overflow file. That does not have to do with the size of any individual file but with the total amount of data that needs to be accommodated in the file system/directory.
    this question seems to asd for just the opposite, a rationale as to why a percentage would be needed, not a set amount of space.
    My intention was to suggest there was a relationship (read percentage) between the total amount of data on the drive and the size of the filesystem. On a 100 GB HDD the filesystem will be smaller as the amount of data stored occupies a smaller amount of disk capacity. On a 1 Terabyte HDD 85% of total used capacity requires a corresponding size of directory. As I understand it the size of the directory varies in direct relationship with the amount of data stored on the drive and not to the total capacity of the HDD. The Micromat study (sorry, I have lost the link for that reference) found that the optimal capacity was 85% to avoid directory corruption.
    As I noted in earlier posts, the equation may have changed with the advent of larger capacity drives, but I am not aware of documentation to that effect. I should also add that I am not by any means an expert. However, I am not willing to test to see how crowded my HDD has to be before I encounter an unrecoverable directory.
    My asking for support for statements made is not by way of debate. I earnestly seek to learn more about this and other subjects from those who have information I do not, myself, have.
    cornelius

  • Slow Effect performance in IE

    hi everyone ,
    I'm using slide effect in this page
    http://www.dostfindik.com.tr/test2
    Effects are working proper in all browsers except ie .
    Does using alpha transparent background png slow down
    performance ?
    thanks.

    check out this:
    http://www.sitepoint.com/blogs/2007/09/18/png8-the-clear-winner/

  • Firefox 4 is extremely slow to perform any function on my lap top compared to previous versions. Why? And how do I change this!

    Firefox 4 is extremely slow to perform any function on my lap top compared to previous versions. Why? And how do I change this!

    Firefox 21 and Firefox 22 running on Windows 7 have been reported to take a long time to "wake up" from sleep. I realize hibernation is different than sleep, but... this is the closest match for your description.
    Some users have reported that this problem is resolved in Firefox 23 (currently in beta). Others have had inconsistent luck with minimizing Firefox before letting Windows sleep and other measures.
    Please check out this (very long) thread for more information: [https://support.mozilla.org/questions/961898 browser freezes after resuming from sleep]
    Or jump to the part about Firefox 23: https://support.mozilla.org/questions/961898?page=3#answer-457321
    The fact that this just started recently suggests perhaps it is related to another program or update, but I don't think anyone has confirmed the exact interaction that causes the problem.

  • Will more function globals or sub vis slow down realtime DAQ or display

    I need to do high sampling rate DAQ with varient data process and display.
    Shall I intend to put all the code into one vi to accelarate the speed,  or can I use more function global or sub vis to make the structure looks more reasonable.
    Just worry how the compiler handle the data transfer when call function global or sub vis.
    Will it creat new data copy and slow down the speed. Thanks.

    The other 2 loops in charge of the data processing and display will keep checking the version of the 2 function global. 
    For high performance, you want to avoid this sort of thing. Basically, you're polling the functional global to see if it has new data. Polling will eat the CPU unless you include WAIT periods, but doing that slows your responsiveness.
    Consider using custom events.
    For the sake of discussion, let's say you need to process data in the TIME domain (1) and the FREQUENCY domain (2).
    You create two events: NEW TIME DATA and NEW FREQ DATA, each carrying an array of DBL (the time-domain data from the DAQ).
    The DAQ routine, when it gets a new data block fires both these events, feeding it the new data. 
    Your TIME DOMAIN loop (1) has registered for one event.  When that event is triggered, the code accepts the data, and does whatever it needs to do (filters the time domain, graphs it, writes to file, averages, whatever).
    Another loop (2) has registered for the OTHER event.  When THAT event is triggered, the code accepts the data, performs FFT on it, and  does whatever it needs to do (filters the frequency domain, graphs it, writes to file, averages, whatever).
    Or you could do the same thing with queues.
    When the use changes conditions, you change which event you listen to, or which queue you consume from. 
    The idea is that you want to avoid polling.  Let the system tell YOU when data is available. Don't be asking the system if it's available. 
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

  • I'm about to buy a 27" i-Mac. I would like to connect my 30" Cinema Display to it as a second monitor. What will I need to do that? Will this slow down the overal performance?

    I'm about to buy a 27" i-Mac. I would like to connect my 30" Cinema Display to it as a second monitor. What will I need to do that? Will this slow down the overall performance?

    The new iMacs do not come with a MiniDisplayPort, they have Thunderbolt, so unless you are talking about purchasing one of the previous generation iMacs such as this refurbished model in the online Apple store, it won't work. And yes, if you are going to get the full range of video resolutions you will need the Dual-Link version.
    For details see the store's web page on the Dual-Link display adapter.

  • Performance slows down when moving from stage to test schema within same instance with same database table and objects

    We have created a stage schema and tested application which is working fine when we are moving it to another schema for further testing ( This schema is created using same scripts which were used to create objects in staging schema) the performanc of application (Developed in .NET) slows down drastically
    Some of the store procedures we have checked at Databse/SQLdeveloper level are giving almost same performance but at Application level there is lot of difference
    Can you please help
    We are using Oracke 11g Database

    Are you using the Database Cloud Service?  You cannot create schemas in the Database Cloud Service, which makes me think you are not.  This forum is only for the Database Cloud Service.
    - Rick Greenwald

Maybe you are looking for

  • Autocommit and Cursor commit Behaviour

    Hi, I need help to set and get the Autocommit and Cursor commit behavior attributes in Oracle. AUTOCOMMIT: For DDL Statement, this attribute is set while executing the OCIStmtExecute() api as below:- r = OCIStmtExecute(d->svc, d->sql, d->err, 1,0, (C

  • Free Goods with VAT & without VAT

    Dear Friends, We have a two scenario, We need to charge VAT from the customer for Free goods which got billed from Plant 1000. We will not charge VAT from the customer for Free goods which got billed from Plant 2000. Right now we are using a Pricing

  • PS 13.1.2 Adobe App Mgr Error U44M1p7

    I get the following error code when downloading PS 13.1.2 with Adobe App Manager: U44M1P7

  • Configuring workflow for case management

    Hi My requirement is to copy the standard workflow for case management WS01700044 and add few things once the case is processed. Now my problem is, how do I configure this new Z workflow in the SCASE. So that once I save the case, I should be able to

  • Can't "require builder" for Ruby.

    I have not the faintest clue how Ruby and gems work. I'm just trying to compile some software. The following fails: require 'rake' require 'rubygems' require 'builder' Complaining that it can't find a file for builder. This is on a fresh install of r