SQL to NoSQL DBs
https://www.agiratech.com/the-key-differences-between-sql-and-nosql-database/
SQL has integrity with predefined structure and schemas. Universal and compatible with many tools.
Difficult to scale. Time consuming to understand and design the structure of DB.
MySQL
Oracle
NoSQL allows you to store different data types together and you can easily scale (scalability) by
spreading around multiple servers. Faster.
MongoDB
SQL Database is a Relational Database and a structured one
whereas NoSQL is a Non-relational database likely to be more
document and distributed than structured.
Relational database strictly adheres relations where it is
divided into the set of rows and columns to store data often
named as tables.
Non-relational database has a document-oriented or
distributed storage which doesn’t require any table
structure.
SQL Databases have a well-designed pre-defined schema.
NoSQL databases have a dynamic schema for document type
or unstructured data.
SQL databases are vertically scalable whereas NoSQL
databases are horizontally scalable. You can scale the
SQL databases by expanding the strength of its hardware.
Similarly, when it comes to NoSQL databases you can scale
it by expanding the database servers in the pool of assets to
lessen the heap.
While SQL uses structured query language for defining data,
NoSQL uses the collection of documents which is also known as
UnQL (Unstructured Query Language).
There is no hierarchical data storage for SQL.
NoSQL uses hierarchical data storage
We can easily add the new data in NoSQL without requiring
prior steps whereas SQL might require doing some changes like
backfilling data, altering schemas.
Since SQL has a standard interface for handling complex
queries, it would be great to deal with complex queries. We
don’t have any standard interface in NoSQL, so it’s quite difficult
to handle complex queries in NoSQL.