incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject git commit: [#7186] add artifact_feed index on project_id, -pubdate
Date Wed, 19 Feb 2014 18:52:36 GMT
Repository: incubator-allura
Updated Branches:
  refs/heads/master 6bb7fcf4d -> ec830d132


[#7186] add artifact_feed index on project_id, -pubdate


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/ec830d13
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/ec830d13
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/ec830d13

Branch: refs/heads/master
Commit: ec830d1320f35b60e55f36414de00038cfd69a30
Parents: 6bb7fcf
Author: Dave Brondsema <dbrondsema@slashdotmedia.com>
Authored: Tue Feb 18 21:51:04 2014 +0000
Committer: Cory Johns <cjohns@slashdotmedia.com>
Committed: Wed Feb 19 18:52:19 2014 +0000

----------------------------------------------------------------------
 Allura/allura/model/artifact.py | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/ec830d13/Allura/allura/model/artifact.py
----------------------------------------------------------------------
diff --git a/Allura/allura/model/artifact.py b/Allura/allura/model/artifact.py
index 19071c7..d54a08e 100644
--- a/Allura/allura/model/artifact.py
+++ b/Allura/allura/model/artifact.py
@@ -763,6 +763,9 @@ class Feed(MappedClass):
              ('pubdate', pymongo.DESCENDING)),
             # used in ext/user_profile/user_main.py for user feeds
             'author_link',
+            # used in project feed
+            (('project_id', pymongo.ASCENDING),
+             ('pubdate', pymongo.DESCENDING)),
         ]
 
     _id = FieldProperty(S.ObjectId)


Mime
View raw message