Abstract
Information systems manage and process data for the fundamental tasks and specific requirements of each business. A database is thus an essential component of an information system. Database research involves two approaches, namely: relational and non-relational. A relational database is defined by rigid structures that provide consistency and referential integrity. However, this causes delays in response times and affects the availability of the schema. On the other hand, a non-relational database is schemaless and provides great flexibility for organizing and retrieving data; however, this characteristic does not guarantee strict consistency. An analysis of the performance of both database approaches is necessary to support the implementation of information systems. This research focuses on two datastores: MySQL (a relational database), and MongoDB (a non-relational database). Thus, the aim of this paper is to evaluate and compare the performance of both databases. For this, six evaluation scenarios were defined and executed using Yahoo! Cloud Serving Benchmark. This document highlights the best and worst performance scenarios for both databases based on three parameters: overall runtime, latency, and throughput. Finally, conclusions and future works are provided at the end of the paper.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Membrey, P., Plugge, E., Hawkins, T.: The Definitive Guide to MongoDB - The NoSQL Database for Cloud and Desktop Computing. Apress, New York (2020)
Alapati, S.: Expert Apache Cassandra - Install, Configure, Optimize, and Secure Apache Cassandra Databases. Apress, Berkeley (2018)
Chandra, D.G.: BASE analysis of NoSQL database. Futur. Gener. Comput. Syst. 52, 13–21 (2015). https://doi.org/10.1016/j.future.2015.05.003
Chellappan, S., Ganesan, D.: MongoDB features and installation. In: MongoDB Recipes, pp. 1–24. Apress, Berkeley (2020)
MySQL: MySQL 8.0 Reference Manual (2020)
Friedrich, S., Ritter, N.: YCSB. In: Sakr, S., Zomaya, A. (eds.) Encyclopedia of Big Data Technologies, pp. 1–4. Springer, Cham (2018). https://doi.org/10.1007/978-3-319-63962-8_131-1
Kitchenham, B.: Guidelines for performing systematic literature reviews in software engineering. Durham, UK (2007)
Agarwal, S., Rajan, K.S.: Performance analysis of MongoDB versus PostGIS/PostGreSQL databases for line intersection and point containment spatial queries. Spat. Inf. Res. 24(6), 671–677 (2016). https://doi.org/10.1007/s41324-016-0059-1
Makris, A., Tserpes, K., Spiliopoulos, G., Zissis, D., Anagnostopoulos, D.: MongoDB Vs PostgreSQL: a comparative study on performance aspects. GeoInformatica 25, 241–242 (2021). https://doi.org/10.1007/s10707-020-00424-9
Chopade, R.M., Dhavase, N.S.: MongoDB, CouchBase: performance comparison for image dataset. In: 2017 2nd International Conference for Convergence in Technology, I2CT 2017, pp. 255–259 (2017)
Cayres, L.U., de Lima, B.S., Garcia, R.E., Correia, R.C.M.: Analysis of Node.js application performance using MongoDB drivers. In: Rocha, Á., Ferrás, C., Montenegro Marin, C.E., Medina García, V.H. (eds.) ICITS 2020. AISC, vol. 1137, pp. 213–222. Springer, Cham (2020). https://doi.org/10.1007/978-3-030-40690-5_21
Kumar Pandey, S., Kumar Pandey, S.: An approach to improve load balancing in distributed storage systems for NoSQL databases: MongoDB. In: Pattnaik, P., Rautaray, S., Das, H., Nayak, J. (eds.) Progress in Computing, Analytics and Networking, Advances in Intelligent Systems and Computing, pp. 785–793. Springer, Singapore (2018)
Chopade, R., Pachghare, V.: MongoDB indexing for performance improvement. In: Tuba, M., Akashe, S., Joshi, A. (eds.) ICT Systems and Sustainability. AISC, vol. 1077, pp. 529–539. Springer, Singapore (2020). https://doi.org/10.1007/978-981-15-0936-0_56
Haughian, G., Osman, R., Knottenbelt, W.J.: Benchmarking replication in Cassandra and MongoDB NoSQL datastores. In: Hartmann, S., Ma, H. (eds.) DEXA 2016. LNCS, vol. 9828, pp. 152–166. Springer, Cham (2016). https://doi.org/10.1007/978-3-319-44406-2_12
Fuad, A., Erwin, A., Ipung, H.P.: Processing performance on Apache Pig, Apache Hive and MySQL cluster. In: Proceedings of 2014 International Conference on Information, Communication Technology and System, ICTS 2014, pp. 297–301 (2014)
Grandhi, B., Chickerur, S., Patil, M.S.: Performance analysis of MySQL, Apache Spark on CPU and GPU. In: 2018 3rd IEEE International Conference on Recent Trends in Electronics, Information and Communication Technology, RTEICT 2018 – Proceedings, pp. 1494–1499. IEEE (2018)
Jogi, V.D., Sinha, A.: Performance evaluation of MySQL, Cassandra and HBase for heavy write operation. In: 2016 3rd International Conference on Recent Advances in Information Technology, RAIT 2016, pp. 586–590. IEEE (2016)
Tongkaw, S., Tongkaw, A.: A comparison of database performance of MariaDB and MySQL with OLTP workload. In: ICOS 2016 - 2016 IEEE Conference on Open Systems (ICOS), pp. 117–119 (2017)
Kumar, A.S.: Performance analysis of MySQL partition, hive partition-bucketing and Apache Pig. In: 1st India International Conference on Information Processing (IICIP), pp. 1–6 (2017)
Dawodi, M., Hedayati, M.H., Baktash, J.A., Erfan, A.L.: Facebook MySQL performance vs MySQL performance. In: 2019 IEEE 10th Annual Information Technology, Electronics and Mobile Communication Conference, IEMCON 2019, pp. 103–109. IEEE (2019)
Aboutorabi, S.H., Rezapour, M., Moradi, M., Ghadiri, N.: Performance evaluation of SQL and MongoDB databases for big e-commerce data. CSSE 2015 - 20th International Symposium on Computer Science and Software Engineering (2015). https://doi.org/10.1109/CSICSSE.2015.7369245
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2022 Springer Nature Switzerland AG
About this paper
Cite this paper
Mendoza-Tello, J.C., Villacís-Ramón, J. (2022). MySQL vs MongoDB: A Preliminary Performance Evaluation Using the YCSB Framework. In: Botto-Tobar, M., Montes León, S., Torres-Carrión, P., Zambrano Vizuete, M., Durakovic, B. (eds) Applied Technologies. ICAT 2021. Communications in Computer and Information Science, vol 1535. Springer, Cham. https://doi.org/10.1007/978-3-031-03884-6_14
Download citation
DOI: https://doi.org/10.1007/978-3-031-03884-6_14
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-031-03883-9
Online ISBN: 978-3-031-03884-6
eBook Packages: Computer ScienceComputer Science (R0)