diff --git a/common/lib/keystore/mongo.py b/common/lib/keystore/mongo.py index 20c4ffde1a..4c50b634ea 100644 --- a/common/lib/keystore/mongo.py +++ b/common/lib/keystore/mongo.py @@ -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