Performance Tools and Techniques
Explore key performance tuning techniques in MongoDB using profiling, slow query analysis, and system monitoring. Learn how to optimize indexes, cache utilization, and hardware configurations to improve database efficiency at scale.
|
Upon completion of the Performance Tools and Techniques skill and skill check, you will earn a Credly Badge that you are able to share with your network. |
Learning Objectives

Use tuning techniques including profiling, slow query analysis, and system monitoring
Analyze query performance and identify slow operations using MongoDB’s profiling and monitoring tools.

Optimize indexes
Apply indexing strategies to improve query performance and reduce latency.

Optimize cache utilization
Configure MongoDB's caching mechanisms to enhance read efficiency and reduce database load.
Sequoyha Pelletier | Senior Technologist, Education
Sequoyha Pelletier is a Senior Technologist at MongoDB, bringing over 15 years of experience in technical curriculum development and delivery. Before joining MongoDB, he worked in the Worldwide Support team for DataStax, eventually leading the curriculum team for new hire onboarding.
Sequoyha is extremely passionate about providing quality education for free to those in need and enjoys pushing the boundaries of what is considered "normal" practices with delivering educational content.
Sarah Evans | Senior Curriculum Engineer
Sarah is a Senior Curriculum Engineer on the Curriculum team at MongoDB. Prior to MongoDB, she taught and developed curricula for developer bootcamps. Sarah has a MAT degree from Columbia University Teachers College and studied Software Engineering at Flatiron School in Chicago, IL.
Manuel Fontan Garcia | Senior Technologist, Education
Manuel is a Senior Technologist on the Curriculum team at MongoDB. Previously he was a Senior Technical Services Engineer in the Core team at MongoDB. In between Manuel worked as a database reliability engineer at Slack for a little over 2 years and then for Cognite until he re-joined MongoDB. With over 15 years experience in software development and distributed systems, he is naturally curious and holds a Telecommunications Engineering MSc from Vigo University (Spain) and a Free and Open Source Software MSc from Rey Juan Carlos University (Spain).
Daniel Curran | Senior Software Engineer
Daniel is a Senior Software Engineer at MongoDB. Before joining MongoDB, he worked as an Instructional Designer and Content Developer specialising in technical content for a host of international clients. Daniel's goal is to remove obstacles so learners can feel confident on their journey to become masters of MongoDB.
John McCambridge | Curriculum Engineer
John is a Curriculum Engineer on the University team at MongoDB. Before his work as a Curriculum Engineer, he was an instructor and teaching assistant for coding boot camps at UT (Austin), and UCLA. Additionally, he worked as a QA engineer for a startup called Coder and spent five years at Apple Inc. John is a passionate software engineer and educator who enjoys taking complex topics and making them digestible for the community.
Hello. My name is Aaron, and I'm a curriculum engineer at MongoDB.
Welcome to this skill on performance tools for MongoDB.
Here, we'll explore the powerful performance tools available in MongoDB to tackle these challenges head on and restore application responsiveness.
First, we'll look at the tools for profiling our MongoDB databases, including the query profiler in Atlas and the database profiler for self managed instances. We'll discuss the purpose of profiling and performance analysis, as well as how these tools can help us find problematic operations.
Then we'll look at how we can leverage tools to analyze our slow queries to determine the best path towards optimization.
We'll define what constitutes a slow query and learn how to analyze them using command line tools with MongoDB log files, as well as the explain command in MongoDB Shell.
We'll then look at how system resources like CPU, memory, disk IO, and network bandwidth affect database performance and identify resource bottlenecks that impact query performance.
We'll analyze performance metrics at the name space level using Atlas query insights, explore the range of available metrics on the Atlas cluster metrics page, and look at the Atlas real time monitoring panel to monitor real time changes.
We'll also learn how to monitor our system using MongoTop and MongoStat to see how different collections impact our database performance and gain broader hardware insights by using BTOP to monitor our CPU and memory usage. Finally, we'll go over the role that indexes play in query performance and how we can add or optimize our indexes using the Atlas performance advisor, as well as using the MongoDB shell to create, modify, and remove indexes. You'll have plenty of opportunities to practice what you've learned by completing labs that present real world scenarios.
When you're finished, you'll be ready to put your new skills to the test. To earn your badge, complete all the related content and then take the short skill check at the end. After passing it, you'll receive an official Credly badge via the email you provided. Be sure to share your badge on LinkedIn to show off your new skills. By completing this skill badge, you'll have a basic understanding of how the various performance tools in MongoDB work together to help us keep our system running efficiently.
Let's get started.
