Commit 520fac1a by Calen Pennington

Enforce an index over the location key in mongo

parent a7d0e2e1
...@@ -15,6 +15,7 @@ class MongoModuleStore(ModuleStore): ...@@ -15,6 +15,7 @@ class MongoModuleStore(ModuleStore):
host=host, host=host,
port=port port=port
)[db][collection] )[db][collection]
self.collection.ensure_index('location')
# Force mongo to report errors, at the expense of performance # Force mongo to report errors, at the expense of performance
self.collection.safe = True self.collection.safe = True
......
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