mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-26 23:39:11 -05:00
Don't memoize campaign_history.
campaign_history is used to look up traffic for links in batch and the return can be too large for memoize. The query is fast and only used by admins so not memoizing it shouldn't be a problem.
This commit is contained in:
@@ -523,7 +523,6 @@ class TargetedClickthroughsByCodename(Base):
|
||||
return total_by_codename(cls, codenames)
|
||||
|
||||
@classmethod
|
||||
@memoize_traffic(time=3600)
|
||||
def campaign_history(cls, codenames, start, stop):
|
||||
return campaign_history(cls, codenames, start, stop)
|
||||
|
||||
@@ -605,7 +604,6 @@ class TargetedImpressionsByCodename(Base):
|
||||
return total_by_codename(cls, codenames)
|
||||
|
||||
@classmethod
|
||||
@memoize_traffic(time=3600)
|
||||
def campaign_history(cls, codenames, start, stop):
|
||||
return campaign_history(cls, codenames, start, stop)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user