Optimizing MongoDB performance with indexing : practices of indexing in MongoDB
Thapa, Ajit Bahadur (2022)
Thapa, Ajit Bahadur
2022
All rights reserved. This publication is copyrighted. You may download, display and print it for Your own personal use. Commercial use is prohibited.
Julkaisun pysyvä osoite on
https://urn.fi/URN:NBN:fi:amk-2022061317593
https://urn.fi/URN:NBN:fi:amk-2022061317593
Tiivistelmä
With the rise in the trend of collecting data in every possible way, there is also increase in gathering unstructured data. These unstructured data need a proper database to get stored, managed and adequately processed. Thus, this thesis aims to explain the various factors affecting database performance and the indexing advantage in MongoDB.
The main objective of this thesis was to find out the importance of indexing in MongoDB to improve query performance. The performance test was carried out between indexed and non-indexed collections in MongoDB to determine whether indexed collections had better query performance? An outcome showed query performance was improved in an indexed collection, which is mainly seen with an increase in data volume. Although indexing is useful for increasing performance, there are also some negative aspects of overusing it. Thus, some considerations to properly implement indexing are also presented throughout the discussion.
The main objective of this thesis was to find out the importance of indexing in MongoDB to improve query performance. The performance test was carried out between indexed and non-indexed collections in MongoDB to determine whether indexed collections had better query performance? An outcome showed query performance was improved in an indexed collection, which is mainly seen with an increase in data volume. Although indexing is useful for increasing performance, there are also some negative aspects of overusing it. Thus, some considerations to properly implement indexing are also presented throughout the discussion.