Why mongoDb is slower than MySql in deleting documents? -
i doing tests databases performance. tried delete information stored database.
i've noticed mysql faster mongodb type of operation.
here results:
mysql time (in seconds): 163.724
mondodb time (in seconds): 221.150
queries used:
mysql: delete table
mongodb: db.collection.remove({})
in opinion, why happening?
structure of document in mongodb (version 3.2):
{ "_id" : objectid("56a967615390f47f25798c97"), "user_id" : "1", "follower_id:" : "11" }
structure of row in mysql:
id=1 user_id=1 follower_id=11
operating system used:
os x el capitan; 2,5ghz intel core i7; 16gb ram
Comments
Post a Comment