Articles → MONGODB → Create An Index In The Background In Mongodb

Create An Index In The Background In Mongodb






Purpose





Syntax


db.[collection].createIndex(
  { [field]: 1 },  
  { background: true }  
)



Output


Picture showing creating an index in background



Posted By  -  Karan Gupta
 
Posted On  -  Monday, May 20, 2024

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250