View vs Constantly Updated Table - Mailing list pgsql-general

From Ketema Harris
Subject View vs Constantly Updated Table
Date
Msg-id AB0DBF48-5365-4956-9101-3A20910FC79B@ketema.net
Whole thread Raw
Responses Re: View vs Constantly Updated Table
Re: View vs Constantly Updated Table
Re: View vs Constantly Updated Table
List pgsql-general
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@ketema.net
ketemaj on iChat



Attachment

pgsql-general by date:

Previous
From: "Merlin Moncure"
Date:
Subject: Re: PostgreSQL installation
Next
From: "Adam Rich"
Date:
Subject: Re: View vs Constantly Updated Table