Using bulk operations
. bulk.find(queryDoc).remove()
db.collection.remove(queryDoc)
, . :
var bulk = db.yourCollection.initializeUnorderedBulkOp()
bulk.find(yourQuery).remove()
bulk.execute()
. Bulk.find(). remove() MongoDB.
, . , db.collection.remove(query)
.
. 12M- 5- MacBook, , , 10 . , , .
, , , . , : , , . mongod , .
, , , .
db.collection.createIndex(
{firstFieldYouQueryBy:1,...,NthFieldYouQueryBy:1},
{background:true}
)
, .
. , :
db.currentOp()
( ).
( db.collection.getIndices()
), , , . , , , .
, .
, , .