Non-Relational Databases (NoSQL)
Non-Relational Databases (NoSQL)
N B D F 622
Recap: Relational database
•A relational database stores its data in the form of tables with related rows and columns.
•It has a very strict schema it follows, limiting its flexibility and scalability
•Data commonly accessed using a querying language such as SQL.
Non-relational (No-SQL)
Databases
•NoSQL is a type of database management system (DBMS) that is designed to handle and store
large volumes of unstructured and semi-structured data.
•NoSQL databases use flexible data models that can adapt to changes in data structures and are
capable of scaling horizontally to handle growing amounts of data.
•The term NoSQL originally referred to “non-SQL” or “non-relational” databases, but the term has
since evolved to mean “not only SQL,” as NoSQL databases have expanded to include a wide
range of different database architectures and data models.
•Four (4) common types of NoSQL databases: Key-value, document, graph, and wide-column.
Key-value database
Key-value databases use a straightforward schema: a unique
key is paired with a collection of values, where the values can
be anything from a string to a large binary object.
This database is like an RDBMS with two columns: the
attribute (key) name (such as "state") and the value (such as
"Alaska").
They are used for caching and session management and
provide high performance in reads and writes because they
tend to store things in memory.
Examples are Amazon DynamoDB and Redis.
Graph database
A graph database stores data in the form of nodes and edges.
Language Support by MongoDB: MongoDB currently provides official driver support for all
popular programming languages like C, C++, Rust, C#, Java, Node.js, Perl, PHP, Python, Ruby,
Scala, Go, and Erlang.
MongoDB for NoSQL Tutorial
MongoDB is a source-available, cross-platform, document-oriented database program.
Read through the following article for more info on MongoDB:
https://www.mongodb.com/resources/products/fundamentals/basics
For our next class, create a MongoDB account and connect your Python to it.
Create your free account here: https://www.mongodb.com/cloud/atlas/register
To connect Python to it, follow this tutorial:
https://youtu.be/3wNvKybVyaI?si=mgdeckh1uIX3zzmZ