Analisis Perbandingan Struktur Data Dan Kompleksitas Koding Antara MySQL Dan MongoDB Pada Pengembangan Aplikasi Blog
Main Article Content
Abstract
The dominance of Relational Database Management Systems (RDBMS) often introduces coding inefficiencies when handling hierarchical data structures, such as commenting features in modern web development. This study compares data structure design efficiency and coding complexity between MySQL and MongoDB within the context of blog application development. Employing a comparative experimental approach, the research simulates a Node.js-based article management module using a hybrid dataset that combines structured user profiles with dynamic volumes of nested comments. The analysis reveals significant architectural distinctions: MySQL necessitates strict normalization across five physical tables and complex join operations, whereas MongoDB leverages an embedded document model that eliminates the need for multi-table relations. Quantitatively, MongoDB demonstrated faster average read execution times (7.9 ms) compared to MySQL (10.7 ms) and yielded JSON data structures directly compatible with application objects, effectively resolving impedance mismatch issues. The study concludes that MongoDB offers superior developer productivity for use cases involving nested data, while MySQL remains the recommended choice for systems prioritizing strict referential integrity validation.
Article Details

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
References
R. Elmasri and S. B. Navathe, Fundamentals of Database Systems. Pearson Education, 2015. [Online]. Available: https://books.google.co.id/books?id=tRybCgAAQBAJ
F. Sulianta, mongoDB - Mudah Belajar Database NoSQL. Feri Sulianta, 2024. [Online]. Available: https://books.google.co.id/books?id=jcUyEQAAQBAJ
C. Győrödi, R. Gyorodi, G. Pecherle, and A. Olah, A Comparative Study: MongoDB vs. MySQL. 2015. doi: 10.13140/RG.2.1.1226.7685.
S. Bradshaw, E. Brazil, and K. Chodorow, MongoDB: The Definitive Guide: Powerful and Scalable Data Storage. O’Reilly Media, 2019. [Online]. Available: https://books.google.co.id/books?id=vq_CDwAAQBAJ
M. Silalahi, “PERBANDINGAN PERFORMANSI DATABASE MONGODB DAN MYSQL DALAM APLIKASI FILE MULTIMEDIA BERBASIS WEB,” Comput. Based Inf. Syst. J., vol. 6, no. 1 SE-Articles, p. 63, Mar. 2018, doi: 10.33884/cbis.v6i1.574.
A. Halimi and A. Sudarmanto, “ANALISIS PERBANDINGAN KINERJA WAKTU RESPON MYSQL 8.0 DAN NOSQL MONGODB MENGUNAKAN RESTAPI NODEJS PADA STUDI KASUS KELAS ONLINE,” J. Inform. Wicida, vol. 10, no. 1 SE-Articles, pp. 26–33, Jan. 2021, doi: 10.46984/inf-wcd.1185.
D. Sugiyono, “Metode penelitian pendidikan pendekatan kuantitatif, kualitatif dan R&D,” 2013.
D. Kunda and H. Phiri, “A Comparative Study of NoSQL and Relational Database,” Zambia ICT J., vol. 1, no. 1 SE-Articles, pp. 1–4, Dec. 2017, doi: 10.33260/zictjournal.v1i1.8.
Y. Li and S. Manoharan, “A performance comparison of SQL and NoSQL databases,” in 2013 IEEE Pacific Rim Conference on Communications, Computers and Signal Processing (PACRIM), 2013, pp. 15–19. doi: 10.1109/PACRIM.2013.6625441.
A. Barb, C. Neill, R. Sangwan, and M. Piovoso, “A statistical study of the relevance of lines of code measures in software projects,” Innov. Syst. Softw. Eng., vol. 10, Dec. 2014, doi: 10.1007/s11334-014-0231-5.
E. Oliveira, E. Fernandes, I. Steinmacher, M. Cristo, T. Conte, and A. Garcia, “Code and commit metrics of developer productivity: a study on team leaders perceptions,” Empir. Softw. Eng., vol. 25, Jul. 2020, doi: 10.1007/s10664-020-09820-z.
T. Patel, “Relational Database vs NoSQL,” vol. 2, no. 4, pp. 691–695, 2015.
D. Colley, C. Stanier, and M. Asaduzzaman, “Investigating the Effects of Object-Relational Impedance Mismatch on the Efficiency of Object-Relational Mapping Frameworks,” J. Database Manag., vol. 31, no. 4, 2020, doi: https://doi.org/10.4018/JDM.2020100101.
J. Y. Seo, D. W. Lee, and H. M. Lee, “Performance comparison of CRUD operations in IoT based big data computing,” 2017. doi: 10.18517/ijaseit.7.5.2674.
H. A. Mumtahana, “Optimization of Transaction Database Design with MySQL and MongoDB,” Sink. J. dan Penelit. Tek. Inform., vol. 6, no. 3 SE-, pp. 883–890, Jul. 2022, doi: 10.33395/sinkron.v7i3.11528.
S. Hamouda, Z. Zainol, and M. Anbar, “A Flexible Schema for Document Oriented Database (SDOD),” in Proceedings of the 11th International Joint Conference on Knowledge Discovery, Knowledge Engineering and Knowledge Management (IC3K 2019) - Volume 2: KEOD, SciTePress, 2019, pp. 413–419. doi: 10.5220/0008353504130419.
J. Forgaritenzo, A. Wibowo, and K. Wijana, “Pengembangan Program Alternatif untuk Proses Konsolidasi Multiple Database Menggunakan Pandas dan MongoDB ,” J. Sist. Komput. dan Inform., vol. 7, no. 1 SE-Articles, pp. 42–52, Sep. 2025, doi: 10.30865/json.v7i1.8320.
R. Andreoli, T. Cucinotta, and D. Pedreschi, “RT-MongoDB: A NoSQL Database with Differentiated Performance,” in Proceedings of the 11th International Conference on Cloud Computing and Services Science - CLOSER, SciTePress, 2021, pp. 77–86. doi: 10.5220/0010452400770086.