1.

Which of the following command obtains a global write lock and will block other operations until it has completed?(a) ToCapped(b) isCapped(c) convertToCapped(d) None of the mentioned

Answer» Correct answer is (b) isCapped

The explanation: If the capped size specified for the capped collection is smaller than the size of the original uncapped collection, then MongoDB will overwrite documents in the capped collection based on the insertion order, or first in, first out order.


Discussion

No Comment Found