MongoDB
MongoDB
with Node.js
- VINOTH S P
Intro.,
• Mongodb is a document-oriented NoSQL database used for high
volume data storage.
• MongoDB is the document database. A document is the JSON
content.
• Relational databases were not designed to cope with the scale and
agility challenges that face modern applications.
Key Points
• Instead tables ( in SQL) we are using documents(in NO SQL).
• These documents are structured in BSON(BSON is the binary encoding of
JSON-like documents that MongoDB uses when storing documents in
collections. BSON supports date and binary also).
• We are not able to use (table) join in No SQL. However references to link
between our (No SQL)documents.
• It is no sequel or non relational database.
• Advantages: Easy to make iterations on schema.
• No SQL is more scalable and provide better performance.
• It accommodate large volume of rapidly changing structured, semi
structured and unstructured data.(we can change the structure anytime we
can able to add the new fields whenever required)
NoSQL Database Types
• Document databases pair each key with a complex data structure known as
a document. Documents can contain many different key-value pairs, or
key-array pairs, or even nested documents.
• Graph stores are used to store information about networks of data, such as
social connections. Graph stores include Neo4J and Giraph.
• Key-value stores are the simplest NoSQL databases. Every single item in the
database is stored as an attribute name (or 'key'), together with its value..
• Wide-column stores such as Cassandra and HBase are optimized for
queries over large datasets, and store columns of data together, instead of
rows.
Replication
• Most NoSQL databases also support automatic database replication
to maintain availability in the event of outages or planned
maintenance events.
• More sophisticated NoSQL databases are fully self-healing, offering
automated failover and recovery, as well as the ability to distribute
the database across multiple geographic regions to withstand regional
failures and enable data localization.
SQL Databases NoSQL Databases