Skip to content
Snippets Groups Projects
Commit 520fac1a authored by Calen Pennington's avatar Calen Pennington
Browse files

Enforce an index over the location key in mongo

parent a7d0e2e1
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,7 @@ class MongoModuleStore(ModuleStore):
host=host,
port=port
)[db][collection]
self.collection.ensure_index('location')
# Force mongo to report errors, at the expense of performance
self.collection.safe = True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment