Search Postgresql Archives

View vs Constantly Updated Table

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



if i have a "column" that is a calculation, say a bank balance -> sum of all the debits and credits...is it more efficient to make a view that executes the underlying calc query doing the math, or to create a table that has a column called balance that is updated for each transaction?

so in the end "select balance from view" or "select balance from table" ?

What are the pros cons ?

Thanks

Ketema J. Harris
www.ketema.net
ketema@xxxxxxxxxx
ketemaj on iChat

PNG image



-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux