In this lab, students are asked to profile a MongoDB database. The database profiler collects information about commands executed against a running `mongod` instance. After completing this lab, students will have hands-on experience enabling the database profiler and viewing the collected information.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Enable the Database Profiler
Enable the database profiler to collect information on all database operations.
- Identify Slow Queries
Query the
test.inventory
collection. Then review the data collected in thesystem.profile
collection.
Optionally, add an index based on the profiled data.