allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [19/34] git commit: [#5289] add a mongo index on a TroveCategory.shortname since it is used for some queries
Date Wed, 05 Dec 2012 17:27:48 GMT
[#5289] add a mongo index on a TroveCategory.shortname since it is used for some queries


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

Branch: refs/heads/cj/4691
Commit: 3a0ffdecbbb7bceff961a8185edb8122ee9d1308
Parents: 17f7bc0
Author: Dave Brondsema <dbrondsema@geek.net>
Authored: Mon Dec 3 21:43:48 2012 +0000
Committer: Dave Brondsema <dbrondsema@geek.net>
Committed: Mon Dec 3 22:20:24 2012 +0000

----------------------------------------------------------------------
 Allura/allura/model/project.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/3a0ffdec/Allura/allura/model/project.py
----------------------------------------------------------------------
diff --git a/Allura/allura/model/project.py b/Allura/allura/model/project.py
index d4e53ac..de54e76 100644
--- a/Allura/allura/model/project.py
+++ b/Allura/allura/model/project.py
@@ -60,7 +60,7 @@ class TroveCategory(MappedClass):
     class __mongometa__:
         session = main_orm_session
         name='trove_category'
-        indexes = [ 'trove_cat_id', 'trove_parent_id' ]
+        indexes = [ 'trove_cat_id', 'trove_parent_id', 'shortname' ]
 
     _id=FieldProperty(S.ObjectId)
     trove_cat_id = FieldProperty(int, if_missing=None)


Mime
View raw message