Extract(Read) > Transform(Test&Apply) > Load(Learn) Blog

January 1, 2007

Which one perform better for the same job : Oracle Function or Oracle View

Filed under: Oracle Performance — H.Tonguç Yılmaz @ 4:06 pm

Ok lets try and see, as usual :)

Code listing 35 : Oracle View or Function performs better for the same job

Conclusions; same amount of I/O to do the same thing but view option used less latching and ran faster(older releases will show a larger disparity between the run times). Again time to remember the “Universal mantra on data intensive processing” : don’t use plsql when plain old sql will do it for you ;)

Testing Information : the scripts mentioned are tested on Oracle Database 10g Express Edition Release 10.2.0.1.0

Refences Used :
http://asktom.oracle.com/tkyte/runstats.html
Related AskTom Thread

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: