Introducing Auto-Index Creation for Atlas Serverless Instances

Ashley Kuhwilm

Atlas serverless instances now offer auto-index creation, a new capability that automatically generates indexes to help optimize performance and reduce the cost of your queries.

Auto-index creation is now available in public preview and enabled by default for all serverless instance deployments - allowing developers to worry less about needing to manually optimize their serverless database.

Simplify development with Atlas serverless instances

Developers love serverless technology primarily because of its unparalleled ease of use. By abstracting away infrastructure management, serverless allows developers to focus on what they do best: writing code and building amazing applications. It’s expected that any great serverless offering just works out of the box, without a large learning curve or emphasis on implementation and setup.

Atlas serverless instances, first announced as generally available in June 2022, deliver on this promise by allowing you to deploy a database that seamlessly scales with demand in seconds with minimal configuration and a consumption-based pricing model that only charges for what you use.

The addition of auto-index creation now further reduces management overhead by automating index creation for common queries to ensure fast response time.

How auto-indexing works

Indexes are special data structures that store a small portion of the collection's data set in an easy-to-traverse form. Without indexes, MongoDB must perform a collection scan—i.e., scan every document in a collection—to select those documents that match the query statement. By adding an index to appropriate queries, you can dramatically reduce the number of documents the query engine must inspect in order to return a result and in turn benefit from improved query performance and a reduction in the read operations you are charged for.

With auto-index creation enabled, Atlas will analyze your recent query workload and automatically create high-impact indexes based on index suggestions in the Performance Advisor. This helps promote good index hygiene for your data by creating high-impact indexes without requiring you to regularly check for suggestions or create indexes manually.

You can view newly created indexes in the Atlas UI in the Collections tab of the Data Explorer.

You can also continue to manually add additional indexes in the Collections tab or via the Performance Advisor at any time. To learn more about auto-index creation, visit our documentation.

Create a serverless instance in Atlas today.