Add an index on _id.revision to allow separating draft and published during export

This commit is contained in:
Calen Pennington
2014-09-10 13:33:40 -04:00
parent ce88f61670
commit a72cbfe68a

View File

@@ -1463,3 +1463,6 @@ class MongoModuleStore(ModuleStoreDraftAndPublished, ModuleStoreWriteBase, Mongo
# Because lms calls get_parent_locations frequently (for path generation):
self.collection.create_index('definition.children', sparse=True)
# To allow prioritizing draft vs published material
self.collection.create_index('_id.revision')