Compression & Security in MongoDB without affecting Efficiency
Hitesh Hasija, Dinesh Kumar · 2016
Relational database are not able to deal with Big Data. Hence, to satisfy the demand of emerging Web 2.0 technologies, NOSQL databases are designed. MongoDB, is a schema free, document oriented database. But, it suffers from the problem of authorization, authentication and storing data without encryption. This drawback is overcome by entering data into a middleware before entering into the database. This transparent middleware performs encryption. But, it reduces the efficiency of MongoDB, to store and retrieve data. Instead of providing encryption, this paper came up with a compression technique, to reduce the actual amount of data to be stored. As compression is another form of encryption only. Thus this paper converts plain text into different format of compressed BSON type object. Encryption is achieved this way as data is no more entered in plain format into the database. All this is achieved, without increasing the query execution time of MongoDB. Methodology has been implemented for images also, and verified by calculating the time and number of bytes required to store data before and after compression.