1. Relational 1. Document-oriented(Key -value)
2. Example: 2. Example
a. Mysql a. MongoDb
b. SQL-Ssever b. Cuch Db
c. Oracle c. BigTable
d. SqlLite
e. PostgreSql etc......
3. Have Fixed Schema 3. No-Fixed Schema
4. Consistency 4. Represented as JSON
5. Support complete txn 5. Flexibility
6. Rocks on Shorting, Complex joining 6. Performance, Rocks on Joining
7. selecting without key 7. selecting with key
The five critical differences of SQL vs NoSQL:
- SQL databases are relational, NoSQL are non-relational.
- SQL databases use structured query language and have a predefined schema. NoSQL databases have dynamic schemas for unstructured data.
- SQL databases are vertically scalable, NoSQL databases are horizontally scalable.
- SQL databases are table based, while NoSQL databases are document, key-value, graph or wide-column stores.
- SQL databases are better for multi-row transactions, NoSQL are better for unstructured data like documents or JSON.
Note: Collection in MongoDB are equivalent to the Table in RDBMS
Documents in MongoDB is equivalent to the row in RDBMS
fields in mongoDB are equivalent to the columns in RDBMS
No comments:
Post a Comment