Commit a72cbfe6 by Calen Pennington

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

parent ce88f616
...@@ -1463,3 +1463,6 @@ class MongoModuleStore(ModuleStoreDraftAndPublished, ModuleStoreWriteBase, Mongo ...@@ -1463,3 +1463,6 @@ class MongoModuleStore(ModuleStoreDraftAndPublished, ModuleStoreWriteBase, Mongo
# Because lms calls get_parent_locations frequently (for path generation): # Because lms calls get_parent_locations frequently (for path generation):
self.collection.create_index('definition.children', sparse=True) self.collection.create_index('definition.children', sparse=True)
# To allow prioritizing draft vs published material
self.collection.create_index('_id.revision')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment