Evaluate The Performance of MongoDB NoSQL Database Using Python
Evaluate The Performance of MongoDB NoSQL Database Using Python
ISSN- 2455-5703
Abstract
The NoSQL Databases are now-a-days widely used by many big organizations to handle huge datasets and they have ability for
horizontal scaling. The multi-server system has many nodes connected to servers and it uses the concept of Sharding, is a method
for distributing data across multiple machines. MongoDB uses sharding to support deployments with very large data sets and high
throughput operations. In this system to evaluate the performance of MongoDB, an application is developed with a case study. The
Application for Student Mark Information system is developed with Python Tkinter with MongoDB. Using Anaconda as an open
source distribution for Python with GUI support from Tkinter is developed for maintaining the various details about students and
overall mark details for the entire college. Also the application is developed using Front end as Tkinter for designing the various
screens with Graphical User Interface and the necessary collections (tables in RDBMS) are created to store the students and mark
details. The data entered by the user is validated before entering in to the database. As Mongo DB is available in cloud as MongoDB
Atlas, the data can be stored and retrieved from anywhere from the cloud source in a secured manner. To evaluate the query
performance, the method explain() provides the necessary results. Also db.CurrentOp(), methods reports the current operations
running on a mongod instance, at the server level. The performance results are added at the end.
Keywords- NoSQL Database, MongoDB, Python, Anaconda
I. INTRODUCTION TO NOSQL
NoSQL is a non-relational database to store huge amount of data sets and handle vertical scaling. In the recent times more
applications were developed using this database in which high availability is achieved. It also useful in dealing with big data and
web applications in which more data storage and it uses distributed network which has set of nodes connected with the main server.
The data stored in main server is replicated and stored in the various nodes and it provides a way for high availability. It is a
schema less database, no need for a rigid schema like traditional databases. Many NoSQL databases supports CAP theorem. It is
meant for Consistency, Availability and Partition tolerance. Each NoSQL supports any two properties of CAP.
NOSQL distributed database systems allows to achieve a level of computing power and availability that were not available
in the traditional databases. These systems have higher performance, lower latency, and near 100% up-time in data centres that
span the entire globe.
Since MongoDB is a NoSQL database, all unstructured data can be inserted in to collection. The collection has semester
wise subject information and with the help of the application the user can enter various details about each student final Grade can
be calculated and the final mark statement can be prepared for each student.
Also the various operations line insertion, deletion, viewing of each student details with marks and updation of various
details for each student can be done in an easier manner.
A. Evaluation of Database
> db.test.find( { a: 1 } ).explain("executionStats")
{
"queryPlanner" : {
"plannerVersion" : 1,
"namespace" : "db.test",
"indexFilterSet" : false,
"parsedQuery" : {
"a" : {
"$eq" : 1
}
},
"winningPlan" : {
"stage" : "EOF"
},
"rejectedPlans" : [ ]
},
"executionStats" : {
"executionSuccess" : true,
"nReturned" : 0,
"executionTimeMillis" : 17,
"totalKeysExamined" : 0,
"totalDocsExamined" : 0,
"executionStages" : {
"stage" : "EOF",
"nReturned" : 0,
"executionTimeMillisEstimate" : 0,
"works" : 1,
"advanced" : 0,
"needTime" : 0,
"needYield" : 0,
"saveState" : 0,
"restoreState" : 0,
"isEOF" : 1,
"invalidates" : 0
}
},
"serverInfo" : {
"host" : "mca-acer-79",
"port" : 27017,
"version" : "4.0.10",
"gitVersion" : "c389e7f69f637f7a1ac3cc9fae843b635f20b766"
},
"ok" : 1
}
>
IV. CONCLUSION
Thus NoSQL database like a MongoDB, can able to store huge data with horizontal scaling and has the capacity to handle huge
amount of dataset. In this system, an application has developed as a case study. The system can able to store details like students-
details, mark scored details for all the students of an Institute. After storing details into the database, data is retrieved and
manipulated to prepare Mark statement. Also to evaluate the performance of the database during runtime. From the screenshot, it
is clearly understood that it could support more data with balanced workload among the different nodes connected to the Primary
server.
REFERENCES
[1] Jing Han, Haihong E, Guan Le, Beijing University of Posts and Telecommunications, Survey on NoSQL Database, 2011 IEEE.
[2] Jagdev Bhogal; Imran Choksi Faculty of Computing, Engineering and the Built Environment School of Computing, Telecommunication and Networks
Birmingham City University, UK, Handling Big Data using NoSQL, 2015 29th International Conference on Advanced Information Networking and
Applications Workshops, IEEE.
[3] Yunhua Gu1, Shu Shen1, Jin Wang1, Jeong-Uk Kim2 1 Jiangsu Engineering Center of Network Monitoring, School of Computer & Software, Nanjing
University of Information Science & Technology, Nanjing, 210044, China, Application of NoSQL Database MongoDB, 2015 International Conference on
Consumer Electronics-Taiwan (ICCE-TW).
[4] Pragati Prakash Srivastava; Saumya Goyal; Anil Kumar (SMIEEE) Dept. of Computer Science and Engineering Mody University of Science and Technology
Rajasthan, India. 2015 IEEE.
[5] Adity Gupta, Swati Tyagi, Nupur Panwar, Shelly Sachdeva Jaypee Institute of Information Technology, 2017 IEEE.
[6] Dr. Archana Raje1, Aniket Jagdale2 1(Information Technology, K. J. Somaiya Institute of Management Studies and Research, India), IOSR Journal of
Computer Engineering (IOSR-JCE), Sql Vs NoSql: NewSql the Solution for Big Data.
[7] Rupali Arora, Rinkle Rani Aggarwal, Modeling and Querying Data in MongoDB, International Journal of Scientific & Engineering Research, Volume 4,
Issue 7, July-2013
[8] Lokesh Kumar1 , Dr. Shalini Rajawat2,Krati Joshi3, Computer Science & Engineering, Vivekananda Global University, Jaipur, Rajasthan, India, International
Journal of Modern Trends in Engineering and Research (IJMTER) Volume 02, Issue 05, [May– 2015].
[9] Abhishek Prasad1, Bhavesh N. Gohil2 1,2S.V.National Institute of Technology, Ichchhanath, Surat,India, A Comparative Study of NoSQL Databases,
Volume 5, No. 5, May-June 2014 International Journal of Advanced Research in Computer Science.
[10] Dipina Damodaran B1, Shirin Salim2 and Surekha Marium Vargese 3, Department of Computer Engineering, M A College of Engineering, Kothamangalam,
Kerala, India, PERFORMANCE EVALUATION OF MYSQL AND MONGODB DATABASES International Journal on Cybernetics & Informatics (IJCI)
Vol. 5, No. 2, April 2016.