MongoDB вопросы и ответы для интервью
Вопрос 6. What is indexing in MongoDB?
Indexing is the process of creating an index (like in a book) to improve the performance of queries. Indexes are used to quickly locate and access the data.
Вопрос 7. What is sharding in MongoDB?
Sharding is the process of distributing data across multiple servers. It is MongoDB's approach to meeting the demands of data growth.
Вопрос 8. What is the significance of the ObjectId in MongoDB?
ObjectId is a 12-byte identifier typically employed as the primary key in a MongoDB document. It consists of a timestamp, machine identifier, process ID, and a random incrementing value.
Вопрос 9. Explain replication in MongoDB.
Replication is the process of synchronizing data across multiple servers. It provides redundancy and increases data availability.
Вопрос 10. How can you achieve ACID properties in MongoDB?
MongoDB sacrifices ACID properties for performance and scalability. However, it supports multi-document transactions in recent versions to some extent.
Самое полезное по оценкам пользователей: