2. MODERN DATABASE
To count as modern database, then database must meet three requirements
•The database must scale
•The database must adapt to change
•The database must unleash your data.
3. Use OF Modern Database
Real Time uses :-
•Use in PINTREST for real time analytics.
•Use in Tapjoy for personalization.
•Use in NOVAS for portfolio management.
4. NEW TYPE OF DATA
•New type of application are generating new types of data.
•Increase in web, mobile and IoT application.
•Online trend
It is impossible to incorporate all of this data into the relational model while dynamically scalling
to maintain the performance levels users demand. This cause to look at NOSQL database for the
flexibility they offer.
5. HISTORY OF NOSQL
•Not only SQL or non-relational database.
•20 years back sole option available to store data i.e. RDBMS
•When Internet applications and companies started exploding during the late 90s to early 2000s,
applications went from serving thousands of internal employees within companies to having
millions of users on the public Internet.
•New problem of high availability at large scale drove companies like Google, Facebook and
Amazon to create new technologies.
6. NO SQL
NoSQL encompasses a wide variety of different database technology that were developed in
response to the demands presented in building modern application.
Usually do not require a fixed table schema nor do they use the concept of joins.
Use to store large amount of data.
NoSQL databases are those databases that are non-relational, open source, distributed in
nature as well as it is having high performance in linear way that is horizontally scalable.
7. Why Consider NoSQL?
The various NoSQL databases available today differ quite a bit, but there are common threads
uniting them and these are
•Flexibility
•Scalability
•Availability
•Lower costs
•Special capabilities
8. Types Of NoSQL Databases
There are four types of NoSQL databases.
1. Key value Database
2. Document Store Database
3. Column Database
4. Graph Database
9. Key Value Database
•These databases pair keys to values, like a hash table in computer programming.
•Key is a unique identifier to a particular data entry. Key should not be repeated if one used that
it is not duplicate in nature.
•Value is a kind of data that is pointed by a key.
10. Document Database
•It stores record as document.
•Document consist of set of keys and values.
•Keys are always string
•Values can be stored as strings,numeric,Booleans,arrays etc.
11. Column Database
It is also known as column family databases because they are column-oriented database.
It is of two types :-
1. Wide-Column data store - used for processing of web, streaming of data and documents.
2. Column Oriented database –
Example – Fig show a bank database…
EMPID Salary Designatio
n
100 10000 Clerk
200 20000 Assistant
Manager
300 30000 Manager
400 40000 Zonal Head
12. Column Database
Representation of Row oriented databases and column oriented databases:
Row oriented databases are those databases in which all the rows are put together one by one.
Column oriented databases those databases in which all the values containing columns are put
together.
13. Graph Database
Graph databases are based on the graph theory.
It usually consists of nodes, properties and edges.
NoSQL Graph database consists of:
1. Nodes represent entities
2. Properties represent attributes
3. Edges represent relationships
15. NOSQL VS RDBMS
RDBMS NoSQL
Structured and organized data No predefined schema
Structured Query Language No declarative query language
Data and its relationships stored in
separate tables
Key-value pair storage, column store,
Document store, Graph databases
ACID Properties CAP Theorem
Vertically Scalable Horizontally Scalable
17. NewSQL
•Comes into existence in 2011 by analyst Mathew Aslett
•NewSQL systems offer the best of both worlds.
•Data model and ACID property of traditional database. Familiarity and interactivity of SQL.
•Scalability and speed of NoSQL.
•Clustrix and NuoDB example of NewSQL.