Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Admin > Re: [Fwd: perfo...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 4 Topic 4967 of 5419
Post > Topic >>

Re: [Fwd: performance: view or function?]

by scott.marlowe@[EMAIL PROTECTED] ("Scott Marlowe") May 8, 2008 at 10:42 AM

On Thu, May 8, 2008 at 4:16 AM, Julius Tuskenis <julius@[EMAIL PROTECTED]
> wrote:
> Hello,
>
>  I have one question - what is the difference between the view and a
> function returning a data set? I mean the performance. Which is better
to
> use? If its the same, I would use functions, because I could use other
> languages not just SQL to get the results I want.

Note that functional indexes may be a good choice for certain actions.
 If you always look up tuples based on something like "where
a*80+b<100 or something then a functional index on ((a*80+b)) might be
more useful than a view.  You can also create a custom immutable
function and index on that to make it a bit cleaner.

-- 
Sent via pgsql-admin mailing list (pgsql-admin@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
 




 4 Posts in Topic:
[Fwd: performance: view or function?]
julius@[EMAIL PROTECTED]   2008-05-08 13:16:06 
Re: [Fwd: performance: view or function?]
robert@[EMAIL PROTECTED]   2008-05-08 11:00:56 
Re: [Fwd: performance: view or function?]
scott.marlowe@[EMAIL PROT  2008-05-08 10:42:43 
Re: [Fwd: performance: view or function?]
giorgio_v@[EMAIL PROTECTE  2008-05-09 08:23:30 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Oct 14 10:40:07 CDT 2008.