Додати до Chrome
✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
Which of the following is NOT correct regarding removing data in MongoDB?
db.collection.remove({}) will delete all documents in the collection but leave the collection (and its indexes) intact.
After removing all documents with remove({}), you must manually drop indexes if you no longer need them
Dropping a collection is typically faster than removing all documents one-by-one when you need to clear a large collection.
db.collection.drop() will remove the entire collection, including all documents and indexes.
Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!