🚀 Master the language of AI with our brand new course: "Prompt Engineering for Everyone" Learn more

Offered By: IBM

Improving Performance with Indexes in MongoDB

In this guided project, you will learn how to improve your query’s performance by indexing your MongoDB data.

Continue reading

Guided Project

Database

183 Enrolled
4.3
(21 Reviews)

At a Glance

In this guided project, you will learn how to improve your query’s performance by indexing your MongoDB data.

Discover how to save time in executing a query by indexing your MongoDB data. Indexes are data structures that store entries in order. Ordering supports efficient matching and querying based on ranges.

MongoDB is a popular non-relational database that supports various data types, including dates and numbers.

In this guided project, you will start a MongoDB database. Then you will create a collection (a group of documents) and populate it with a large number of documents. To check the efficiency of a query, you will learn about the explain function, which tells you how long the query takes to run. Then you will choose a field to create an index on and run a query on it. By comparing the time that this query took before you added the index with the time that it took after you added the index, you will discover how efficient using an index can be.

This guided project will prepare you to improve performance when you work with big databases.
 
A Look at the Project Ahead
Once you have completed this project, you'll be able to:
  • Measure the time it takes to execute a query with the explain function
  • Describe the process of creating, listing and deleting indexes
  • Evaluate the effectiveness of an index

What You’ll Need
Just a web browser!

Everything else is provided to you via the IBM Skills Network Labs environment, where you will have access to the MongoDB service that we offer as part of the IBM Skills Network Labs environment. This platform works best with current versions of Chrome, Edge, Firefox, Internet Explorer, or Safari.

Your Instructor
Ramesh Sannareddy

Estimated Effort

30 Minutes

Level

Intermediate

Skills You Will Learn

MongoDB

Language

English

Course Code

GPXX0480EN

Tell Your Friends!

Saved this page to your clipboard!

Sign up to our newsletter

Stay connected with the latest industry news and knowledge!