Search Postgresql Archives

=?gb18030?b?UmU6IFtHRU5FUkFMXSC72Li0o7pbR0VORVJBTF0g?==?gb18030?b?U1AgdG8gY2FsYyBzaGlwbWVudHMgdnMgcmVjZWlw?==?gb18030?b?dHM=?=

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

 



thanks.


------------------ Original ------------------
From:  "Chris Travers";<chris.travers@xxxxxxxxx>;
Date:  Wed, Sep 25, 2013 10:46 PM
To:  "DDT"<410845160@xxxxxx>;
Cc:  "bret_stern"<bret_stern@xxxxxxxxxxxxxxxxxxxxx>; "pgsql-general"<pgsql-general@xxxxxxxxxxxxxx>;
Subject:  Re: [GENERAL] »Ø¸´£º[GENERAL] SP to calc shipments vs receipts




On Wed, Sep 25, 2013 at 7:27 AM, DDT <410845160@xxxxxx> wrote:
By the way, you can try to save the current totals to another table.
update it through triggers when the inventory transactions changed.
it may lead to better performance on a large set of inventory transactions for query current totals

If you are going to do this, my recommendation is to store periodic summaries (i.e. for sum through date) and then aggregate rolling forward. This vastly simplifies querying and data validation if you are only appending data.
--
Best Wishes,
Chris Travers

Efficito: Hosted Accounting and ERP. Robust and Flexible. No vendor lock-in.

[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