incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tvansteenbu...@apache.org
Subject git commit: [#6347] Update indexes on Post collection
Date Tue, 11 Jun 2013 01:05:11 GMT
Updated Branches:
  refs/heads/tv/6347 [created] b76ac9e7b


[#6347] Update indexes on Post collection

Signed-off-by: Tim Van Steenburgh <tvansteenburgh@gmail.com>


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

Branch: refs/heads/tv/6347
Commit: b76ac9e7bbf40886bbd6a3af0657bc65a9027b5b
Parents: 22dc0fe
Author: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Authored: Tue Jun 11 01:04:51 2013 +0000
Committer: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Committed: Tue Jun 11 01:04:51 2013 +0000

----------------------------------------------------------------------
 Allura/allura/model/discuss.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/b76ac9e7/Allura/allura/model/discuss.py
----------------------------------------------------------------------
diff --git a/Allura/allura/model/discuss.py b/Allura/allura/model/discuss.py
index 9c4e573..b316d99 100644
--- a/Allura/allura/model/discuss.py
+++ b/Allura/allura/model/discuss.py
@@ -434,7 +434,7 @@ class Post(Message, VersionedArtifact, ActivityObject):
     class __mongometa__:
         name = 'post'
         history_class = PostHistory
-        indexes = ['discussion_id', 'thread_id']
+        indexes = [('discussion_id', 'status'), 'thread_id']
     type_s = 'Post'
 
     thread_id = ForeignIdProperty(Thread)


Mime
View raw message