mongo DB index
생성
db.collection.ensureIndex( { a: 1, b: 1 }, { unique: true } )
db.collection.ensureIndex( { a: 1, b: 1 }, { unique: true ,background : true} )
삭제
db.collection.dropIndex({a:1,b:1})
This article is licensed under CC BY 4.0 by the author.