On 11/17/14, 10:50 AM, Tomas Vondra wrote:
Either of these restrictions would prevent a situation where a context
has to update accounting for two parent contexts. That'd allow updating
a single place (because each context has a single parent context with
tracking requested).

Another option might be to be lazy on updating parent contexts. I'm thinking 
something like keep a boolean (or make a size of 0 magic) that indicates 
whether a context has up-to-date info from it's children or not. That would 
allow you to only update the complete size when you need it, but if your 
children haven't been touched since the last time you calculated then you're 
don't need to recalc.
--
Jim Nasby, Data Architect, Blue Treble Consulting
Data in Trouble? Get it in Treble! http://BlueTreble.com


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

Reply via email to