allura
リビジョン | 38750bffbc36e3d124b5be7a5a68a44959cf0883 (tree) |
---|---|
日時 | 2012-06-09 00:54:34 |
作者 | Cory Johns <johnsca@geek...> |
コミッター | Dave Brondsema |
[#4265] Added index for slow project icon query
Signed-off-by: Cory Johns <johnsca@geek.net>
@@ -34,6 +34,7 @@ log = logging.getLogger(__name__) | ||
34 | 34 | class ProjectFile(File): |
35 | 35 | class __mongometa__: |
36 | 36 | session = main_orm_session |
37 | + indexes = [('project_id', 'category')] | |
37 | 38 | |
38 | 39 | project_id=FieldProperty(S.ObjectId) |
39 | 40 | category=FieldProperty(str) |