comparisons between MongoDB and RDBMS .

MongoDB RDBMS
Document oriented and non-relational database Relational database
Document based Row based
Field based Column based
Collection based and key value pair Table based
Gives Javascript client for querying Doesn’t give Javascript for querying
Relatively easy to setup Comparatively not that easy to setup
It is unaffected by SQL injection It is quite vulnerable to SQL injection
Ideal for hierarchical data storage Not good for hierarchical data storage
Has dynamic schema Contains predefined schema
100 times faster Through increasing RAM vertical scaling can happen
It is horizontally scalable through sharding Through increasing RAM vertical scaling can happen
Posted on by