[Database] Simple SQL vs NoSQL
1. Schema SQL stores data in tables. NoSQL stores in different methods (key/value, document, columnar and graph) 2. Querying SQL databases uses regular SQL statements. NoSQL uses unQL (Unstructured Query Language) 3. Scalability SQL databases are vertically scalable (beef the same server hardware). NoSQL databases are horizontally scalable (add more servers) 4. Reliability SQL databases are ACID friendly, NoSQL sacrifices ACID property for performance reasons. 4.1) What is ACID? Set of properties of database transactions to guarantee validity even in the event of errors, power failures.etc. Atomicity Consistency Isolation Durability 4.1.1) Atomicity Transactions are often composed of multiple statements. Atomicity guarantees each transaction is treated a single 'unit', which either succeeds completely or fails completely. If any of the statements in a transaction fails to complete, the entire transaction fails and database is left unch...