Skip to content

Commit c9a2f4c

Browse files
authored
Update refresh frequency for denormalized totals
1 parent 38465dd commit c9a2f4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adserver/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1496,7 +1496,7 @@ def refresh_denormalized_totals(self):
14961496
"""
14971497
Refresh the denormalized total_views and total_clicks fields from AdImpression.
14981498
1499-
This should be called periodically (e.g., hourly or daily) instead of updating
1499+
This should be called every few minutes instead of updating
15001500
these fields in real-time to avoid lock contention.
15011501
"""
15021502
aggregation = AdImpression.objects.filter(advertisement__flight=self).aggregate(

0 commit comments

Comments
 (0)