Skip to content

Commit

Permalink
ADD new indexes for Orion
Browse files Browse the repository at this point in the history
  • Loading branch information
fgalan authored Jul 13, 2022
1 parent f279990 commit 3a6061a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/orchestrator/core/mongo.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,13 @@ def createOrionIndexes(self, SERVICE_NAME):
db.entities.create_index("expDate", expireAfterSeconds=0)
db.entities.create_index([("_id.servicePath", pymongo.ASCENDING),
("_id.id", pymongo.ASCENDING),
("_id.type", 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))

Expand Down

0 comments on commit 3a6061a

Please sign in to comment.