nosql - not only sql

7

Click here to load reader

Upload: easydata

Post on 14-Jun-2015

200 views

Category:

Education


2 download

DESCRIPTION

NoSQL - Not Only SQL. Difference between RDBMS , Where do we actually need NoSQL. www.easydata.in

TRANSCRIPT

Page 1: NoSQL - Not Only SQL

NoSQL Dbs.

By easydata.in

easydata - Online Training

Page 2: NoSQL - Not Only SQL

Relational Databases (SQL) And Non-relational Databases (NoSQL)

easydata - Online Training

Relational Databases (SQL) Non-relational Databases (NoSQL)

Oracle MongoDB

MySQL CouchDB

SQL Server BigTable

Page 3: NoSQL - Not Only SQL

NoSQL.

• A NoSQL or Not Only SQL database provides a mechanism for storage and retrieval of data.• Motivations for this approach include simplicity of design, horizontal scaling and

finer control over availability. • The data structure differs from the RDBMS, and therefore some operations are

faster in NoSQL and some in RDBMS.• NoSQL databases are increasingly used in big data and real-time web applications.• NoSQL systems are also called "Not only SQL" to emphasize that they may also

support SQL-like query languages.• Many NoSQL stores compromise consistency in favor of availability and partition

tolerance.

easydata - Online Training

Page 4: NoSQL - Not Only SQL

key characteristics of NoSQL databases • They are distributed, can scale horizontally and can handle data

volumes of the order of several terabytes or petabytes, with low latency.• They have less rigid schemas than a traditional RDBMS.• They have weaker transactional guarantees.• As suggested by the name, these databases do not support SQL.• Many NoSQL databases model data as row with column families, key

value pairs or documents

easydata - Online Training

Page 5: NoSQL - Not Only SQL

If RDBMSs are so good, Why does any one need NoSQL databases ?• When your application is on the internet, where you are dealing with

millions of users and data in the order of petabytes, things start to slow down with a RDBMS.• The basic operations with any database are read and write. Reads can

be scaled by replicating data to multiple machines and load balancing read requests. However this does not work for writes because data consistency needs to be maintained. • Writes can be scaled only by partitioning the data. But this affects read

as distributed joins can be slow and hard to implement. Additionally, to maintain ACID properties, databases need to lock data at the cost of performance.

easydata - Online Training

Page 6: NoSQL - Not Only SQL

easydata - Online Training

Do not need a NoSQL store when -

• All your data fits into 1 machine and does not need to be partitioned.• You are doing OLTP which required the ACID transaction properties

and data consistency that RDBMS is good at.• You need ad hoc querying using a language like SQL.• You have complicated relationships between the entities in your

applications.• Decoupling data from application is important to you.

Page 7: NoSQL - Not Only SQL

easydata - Online Training

Thank You