Adding indexes to feed/page fetch histories.

This commit is contained in:
Samuel Clay 2010-08-31 08:45:35 -04:00
parent 79ba0e695a
commit 1ac8402807

View file

@ -794,6 +794,7 @@ class MFeedFetchHistory(mongo.Document):
meta = {
'collection': 'feed_fetch_history',
'allow_inheritance': False,
'indexes': ['feed_id', ('feed_id', 'status_code'), ('feed_id', 'fetch_date')],
}
class PageFetchHistory(models.Model):
@ -823,6 +824,7 @@ class MPageFetchHistory(mongo.Document):
meta = {
'collection': 'page_fetch_history',
'allow_inheritance': False,
'indexes': ['feed_id', ('feed_id', 'status_code'), ('feed_id', 'fetch_date')],
}
class DuplicateFeed(models.Model):