mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-21 05:45:13 +00:00
Simply adding the number of read stories in the log of slow feed loads.
This commit is contained in:
parent
4f46b358db
commit
62bb88f6ff
2 changed files with 7 additions and 7 deletions
|
@ -32,7 +32,7 @@ class MClassifierTitle(mongo.Document):
|
|||
|
||||
meta = {
|
||||
'collection': 'classifier_title',
|
||||
'indexes': ['feed_id', 'user_id', ('user_id', 'feed_id')],
|
||||
'indexes': [('user_id', 'feed_id')],
|
||||
'allow_inheritance': False,
|
||||
}
|
||||
|
||||
|
@ -45,7 +45,7 @@ class MClassifierAuthor(mongo.Document):
|
|||
|
||||
meta = {
|
||||
'collection': 'classifier_author',
|
||||
'indexes': ['feed_id', 'user_id', ('user_id', 'feed_id')],
|
||||
'indexes': [('user_id', 'feed_id')],
|
||||
'allow_inheritance': False,
|
||||
}
|
||||
|
||||
|
@ -58,7 +58,7 @@ class MClassifierFeed(mongo.Document):
|
|||
|
||||
meta = {
|
||||
'collection': 'classifier_feed',
|
||||
'indexes': ['feed_id', 'user_id', ('user_id', 'feed_id')],
|
||||
'indexes': [('user_id', 'feed_id')],
|
||||
'allow_inheritance': False,
|
||||
}
|
||||
|
||||
|
@ -72,7 +72,7 @@ class MClassifierTag(mongo.Document):
|
|||
|
||||
meta = {
|
||||
'collection': 'classifier_tag',
|
||||
'indexes': ['feed_id', 'user_id', ('user_id', 'feed_id')],
|
||||
'indexes': [('user_id', 'feed_id')],
|
||||
'allow_inheritance': False,
|
||||
}
|
||||
|
||||
|
|
|
@ -350,7 +350,7 @@ def load_single_feed(request, feed_id):
|
|||
'tags': apply_classifier_tags(classifier_tags, story),
|
||||
'title': apply_classifier_titles(classifier_titles, story),
|
||||
}
|
||||
|
||||
|
||||
checkpoint3 = time.time()
|
||||
|
||||
# Intelligence
|
||||
|
@ -372,8 +372,8 @@ def load_single_feed(request, feed_id):
|
|||
diff1 = checkpoint1-start
|
||||
diff2 = checkpoint2-start
|
||||
diff3 = checkpoint3-start
|
||||
logging.user(request.user, "~FYSlow feed load: ~SB%.4s/%.4s/%.4s" % (
|
||||
diff1, diff2, diff3))
|
||||
logging.user(request.user, "~FYSlow feed load: ~SB%.4s/%.4s(%s)/%.4s" % (
|
||||
diff1, diff2, userstories_db.count(), diff3))
|
||||
|
||||
data = dict(stories=stories,
|
||||
feed_tags=feed_tags,
|
||||
|
|
Loading…
Add table
Reference in a new issue