allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [3/8] git commit: [#5289] add a mongo index on a TroveCategory.shortname since it is used for some queries
Date Mon, 03 Dec 2012 22:07:28 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/dc391b62
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/dc391b62
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/dc391b62

Branch: refs/heads/db/5289
Commit: dc391b621854511166d92079999e566bf93e2fc9
Parents: ae2ad8b
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:06:12 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/dc391b62/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