diff --git a/ChangeLog b/ChangeLog index 8424626d..9e60555a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,8 @@ CHANGES ======= +ADD: new Orion indexes to optimize operations (#335) + 4.3.0 ADD: new API to rename subservice (including mongo database of Orion, STH, CEP, IotAgents) (#330) diff --git a/src/orchestrator/core/mongo.py b/src/orchestrator/core/mongo.py index 597f4bdc..822b2e46 100644 --- a/src/orchestrator/core/mongo.py +++ b/src/orchestrator/core/mongo.py @@ -59,6 +59,11 @@ def createOrionIndexes(self, SERVICE_NAME): ("_id.id", pymongo.ASCENDING), ("_id.type", pymongo.ASCENDING)]) db.entities.create_index("creDate") + # New indexes, requested by devops teams. See issue #335 + db.entities.create_index("_id.id") + db.entities.create_index("_id.type") + db.entities.create_index("_id.servicePath") + db.entities.create_index("attrNames") except Exception as e: logger.warn("createIndex database %s exception: %s" % (databaseName,e))