Search Postgresql Archives

Re: View vs Constantly Updated Table

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

 



It is generally better to save the balance. The general rule inaccounting systems design is "what can be printed, should beexplicitly on disk". for an invoice:
value before tax, tax percentage, value after tax, total before tax,total after tax, etc, should all be saved explicitly.
An account should have a balance. Every operation should have balancebefore operation, value, balance after operation. You should neverupdate an operation.
This way when business rules change all previous documents are storedin consistent state.
GreetingsMarcin Mańk
-- 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