Optimizing Indexing Performance in Data Search in MongoDB Database
Optimalisasi Kinerja Indexing Dalam Pencarian Data Di Database Mongodb
DOI:
https://doi.org/10.33050/3hkgx407Keywords:
MongoDB, Indexing, NoSQL Database, Query Performance, ScalabilityAbstract
Indexing in MongoDB is a crucial mechanism for optimizing query performance in
non-relational databases. Without proper indexing, the system is forced to perform a collection
scan, which consumes significant resources. This study examines the fundamental concepts of
indexing, ef ective implementation strategies, and best practices for index management. Using
an experimental methodology, this research compares query performance before and after index
application. The results demonstrate that indexing significantly enhances search ef iciency, with
query execution time reduced from 580 ms to 3 ms, representing a 99.4% performance
improvement. These findings emphasize that a deep understanding of query patterns and data
structures is essential for developers to ensure the scalability and responsiveness of
MongoDB-based applications.
