Skip to content

Testing various CRUD operations in mongodb. Gives an idea of its speed, strengths and weaknesses. Download and run.

Notifications You must be signed in to change notification settings

bootandy/mongodb-benchmark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Benchmarking Mongodb.

Run:
	python main.py

Discoveries:
	Adding: safe=True slows you down between ~ 0 -> 100%

	If you have an object with many fields and you only need to access a few of them.
		- Just load the whole object instead of picking out certain fields.

	If you have an object with > 1000 entries in an array field then consider disregarding the above and only the fields or entries that you need.

	Applying updates at the db level is faster than calling object.save(). Dont make multiple calls to the DB to do your update though - then object.save() will perform better
	

About

Testing various CRUD operations in mongodb. Gives an idea of its speed, strengths and weaknesses. Download and run.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages