Performance of views - Mailing list pgsql-general

From Simon Windsor
Subject Performance of views
Date
Msg-id 490E33B8.5060101@cornfield.me.uk
Whole thread Raw
Responses Re: Performance of views  ("Scott Marlowe" <scott.marlowe@gmail.com>)
Re: Performance of views  (Stephen Frost <sfrost@snowman.net>)
List pgsql-general
Hi

Generally, I have avoided using VIEWS within application code and only
used them for client interfaces, the sole reason being the performance
of views against tables.

Changes to database over the past few years appear to have improved the
performance of views, but I am still not comfortable with using VIEWS
within application code. The main reasons I have are

   * Data within a view is not necessary sequential, unlike a table
   * Higher overhead mapping to original tables and indexes
   * Danger of linking views and tables and not utilising utilising
     underlying tables properly.

Am I right to avoid to VIEWS within application code?

Simon

--
Simon

Simon Windsor
Eml: simon.windsor@cornfield.org.uk
Tel: 01454 617689
Mob: 07960 321599


pgsql-general by date:

Previous
From: Craig Ringer
Date:
Subject: Re: Are there plans to add data compression feature to postgresql?
Next
From: "Scott Marlowe"
Date:
Subject: Re: Performance of views