From: | Ketema Harris <ketema(at)ketema(dot)net> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | View vs Constantly Updated Table |
Date: | 2008-12-15 16:14:20 |
Message-ID: | AB0DBF48-5365-4956-9101-3A20910FC79B@ketema.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)ketema(dot)net
ketemaj on iChat
Attachment | Content-Type | Size |
---|---|---|
image/png | 1.7 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Raymond O'Donnell | 2008-12-15 16:25:57 | Re: View vs Constantly Updated Table |
Previous Message | Chris Browne | 2008-12-15 15:09:42 | Re: Relational database design book |