Build indexes on MongoDB

PHOTO EMBED

Wed Aug 19 2020 06:27:09 GMT+0000 (Coordinated Universal Time)

Saved by @salitha.pathi #mongoshell

db.getCollection('AccountSummary').createIndex({txDate: NumberInt(1)});
db.getCollection('AccountSummary').createIndex({jobId:NumberInt(1)});
db.getCollection('AccountSummary').createIndex({userId:NumberInt(1)});
db.getCollection('AccountSummary').createIndex({isActive:NumberInt(1)});
content_copyCOPY

https://docs.mongodb.com/manual/tutorial/manage-indexes/