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:
Brian Simpson
2013-10-22 03:18:26 -04:00
parent 1e29502b9b
commit 38c8faf140

View File

@@ -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)