The document discusses SQL and NoSQL databases, comparing SQL and MongoDB. It introduces SQL and relational database management systems (RDBMS), then covers what NoSQL is and why it was developed. Key differences between SQL and NoSQL are outlined. MongoDB is introduced as a leading NoSQL database, explaining its schema-less and document-oriented structure and auto-sharding for scalability. The Bottle framework is also briefly described as a lightweight Python web framework. References are provided for further reading.
2. *
* Introduction to SQL and NOSQL
*Comparison between SQL and NOSQL
*NOSQL Databases.
*About MongoDB
*Introduction to Bottle Framework.
*Bottle Framework Demo.
*Reference
4. *
* What is SQL: -
SQL stands for Structured Query Language.
SQL lets you access and manipulate databases.
* Why SQL: -
SQL can execute queries against a database.
SQL can retrieve data from a database.
SQL can insert, update, deletion of records in a database.
* RDBMS: -
RDBMS stands for Relational Database Management System.
The data in RDBMS is stored in database objects called tables.
A table is a collection of related data entries and it consists of columns and rows.
5. *
*What is NOSQL: -
NoSQL is a non-relational database management systems.
The term “NoSQL” encompasses a host of databases, each with different
data storage models.
*Why NOSQL: -
Data storing may not require fixed schema.
Avoid join operations.
It is designed for distributed data stores where very large scale of data
storing needed via Sharding.
Key-Value pair storage, Column Store, Document Store, Graph databases.
6. *
SQL NOSQL
Structured query language (SQL) Stands for Not Only SQL, No
declarative query language and No
predefined schema
Structured and organized data Unstructured and unpredictable data
Data and its relationships are stored in
separate tables.
Key-Value pair storage, Column Store,
Document Store, Graph databases
Data Manipulation Language, Data
Definition Language
Prioritizes high performance, high
availability and scalability
Complex Joins No Complex Join
9. *MongoDB: -
MongoDB is an open-source document database, and leading NoSQL
database.
MongoDB is a cross-platform, document oriented database that provides,
high performance, high availability, and easy scalability.
MongoDB works on concept of collection and document.
*Why MongoDB: -
Schema less : -
MongoDB is document database in which one collection holds different
different documents.
Number of fields, content and size of the document can be differ from
one document to another.
10. Auto Sharding: -
As the size of the data increases, a single machine may not be sufficient to store
the data nor provide an acceptable read and write throughput.
You add more machines to support data growth and the demands of read and write
operations.
Document Oriented Storage :
Data is stored in the form of JSON style documents.
MongoDB supports dynamic queries on documents using a document-based query
language that's nearly as powerful as SQL.
11. *
*Bottle: -
Bottle is a fast, simple and lightweight WSGI micro web-framework for
Python.
WSGI is the Web Server Gateway Interface. It is a specification that
describes how a web server communicates with web applications, and
how web applications can be chained together to process one request.
Bottle does not depend on any external libraries. Hence you can install it
by typing these command: -
12.
13. *
*www.mongodb.com
*http://bottlepy.org/
*Sanobar Khan* , Prof.Vanita Mane**, “SQL Support over
MongoDB using Metadata”, International Journal of
Scientific and Research Publications, Volume 3, Issue 10,
October 2013
*Rupali Arora, Rinkle Rani Aggarwal, “Modeling and
Querying Data in MongoDB”, International Journal of
Scientific & Engineering Research, Volume 4, Issue 7, July-
2013.