allura
リビジョン | bc2e79daef87ea26e9fdc1e67f3dc06387f7cc7a (tree) |
---|---|
日時 | 2012-06-09 00:54:34 |
作者 | Cory Johns <johnsca@geek...> |
コミッター | Dave Brondsema |
[#4265] Added index for slow artifact_feed query
Signed-off-by: Cory Johns <johnsca@geek.net>
@@ -576,6 +576,9 @@ class Feed(MappedClass): | ||
576 | 576 | 'pubdate', |
577 | 577 | ('artifact_ref.project_id', 'artifact_ref.mount_point'), |
578 | 578 | (('ref_id', pymongo.ASCENDING), |
579 | + ('pubdate', pymongo.DESCENDING)), | |
580 | + (('project_id', pymongo.ASCENDING), | |
581 | + ('app_config_id', pymongo.ASCENDING), | |
579 | 582 | ('pubdate', pymongo.DESCENDING))] |
580 | 583 | |
581 | 584 | _id = FieldProperty(S.ObjectId) |