#Store computed aggregated query result in a column

2 messages · Page 1 of 1 (latest)

mild sparrow
#

i want to store aggregated sum of child table rows in parent table. im mostly going to be performing reads on parent table, so i dont want to run a query every time to calculate the sum, but instead store it in a column of parent table. what is the Django way to achieve this?

golden stone