MongoDB | RDBMS |
---|---|
Document-oriented and non-relational database | Relational database |
Document-based | Row-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 |
Unaffected by SQL injection | Quite vulnerable to SQL injection |
Has dynamic schema and ideal for hierarchical data storage | Has predefined schema and not good for hierarchical data storage |
100 times faster and horizontally scalable through sharding | By increasing RAM, vertical scaling can happen |
There is no concept of joins | Joins sometimes form across tables to obtain the data. |
Copyright © 2023 by TechnoComet Solutions