MongoDB 面接の質問と回答
質問 11. What is the role of the profiler in MongoDB?
The profiler is a MongoDB feature that tracks queries executed against the database. It helps in analyzing and optimizing query performance.
質問 12. How do you perform aggregation in MongoDB?
MongoDB provides the `aggregate` method to perform aggregation operations, such as filtering, grouping, sorting, and projecting data.
質問 13. Explain the GridFS in MongoDB.
GridFS is a specification for storing and retrieving large files in MongoDB. It divides a file into chunks and stores each chunk as a separate document.
質問 14. What is the use of the `explain` method in MongoDB?
The `explain` method provides information on the query execution plan, helping in optimizing and understanding how a query is executed.
質問 15. What is the TTL (Time To Live) index in MongoDB?
The TTL index is a special type of index that automatically deletes documents from a collection after a specified amount of time has passed.
ユーザー評価で最も役立つ内容: