Download presentation
Presentation is loading. Please wait.
1
NO SQL for SQL DBA Dilip Nayak & Dan Hess
2
Dilip Nayak Works as Senior DBA at a financial company
Event Coordinator of Sacramento SQL User Group.
3
Dan Hess Senior DBA with Corelogic
Bachelor of Science, Computer Science
4
My Story
5
How Big is BIGDATA? Source:
6
SQL or NoSQL
7
Limitations of Traditional DBs
Scalability Scaling up is very expensive Schema bound Schema is not flexible and fixed. Same/similar type of data Heterogeneous data storage is not possible or recommended.
8
Benefits of NoSQL Database
Schema less Easier for developers Horizontal scalability – lowers cost. Heterogeneous data storage High Availability/Disaster Recovery
9
SQL vs NoSQL SQL NoSQL Gigabytes to Terabytes
Petabytes(1kTB) to Exabytes(1kPB) to Zetabytes(1kEB) Centralized Distributed Structured Semi structured and Unstructured Structured Query Language No declarative query language Stable Data Model Schema less Complex Relationships Less complex relationships ACID Property Eventual Consistency Transaction is priority High Availability, High Scalability Joins Tables Embedded structures
10
RDBMS vs NoSQL RDBMS No SQL Structured & Organized data
Structured Query Language Data and its relationships are stored in different tables. ACID Property Tight consistency Prioritize Transaction is very important. No SQL No predefined Schema No declarative query language. Key-value pair, documents, graph databases Eventual consistency. Unstructured and unpredictable data. Prioritize High Performance, High Availability and High scalability CAP Theorem(Consistency, Availability, Performance)
11
CAP Theorem
12
Types of NoSQL Storage
13
Types of NoSQL Databases
14
Types of NoSQL Databases
15
NoSQL vs SQL
16
MongoDB One of the widely used NoSQL databases Document store database
JSON document for operations in DML Data is stored in BSON format. Available in Community, Enterprise Edition.
17
Data stored in documents
18
SQL to MongoDB Mapping Chart
Database Table Row Column Index Table Joins Primary Key Database Collection Document Field Index Embedded docs Primary Key automatically set to _id field.
19
MongoDB architecture Copies of the data on each node Data safety
High availability Disaster recovery Maintenance Read scaling
20
MongoDB architecture “Partitions” of the data Horizontal scale
Big data sets
21
MongoDB architecture Replica set + sharding
22
DEMO
23
MongoDB explain plan 3 ways to generate explain plan
db.<collection>.explain cursor.explain explain() 3 outputs in explain plan queryPlanner executionStats serverInfo
24
MongoDB index B+ tree Used to access data quickly
Used in sorting, order can matter
25
Disadvantages of NoSQL
No standardization Limited query capability Items are aggregated together like a big excel file Prone to data duplication
26
No SQL = Not Only SQL
27
MongoDB GUIs MongoChef Mongo Compass
Mongo Compass MongoBooster
28
Credits & References http://www.mongodb.com
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.