CS 639 Data Management for Data Science Lecture

  • Slides: 32
Download presentation
CS 639: Data Management for Data Science Lecture 12: No. Sql and Key. Value

CS 639: Data Management for Data Science Lecture 12: No. Sql and Key. Value stores Theodoros Rekatsinas Slides borrowed by Kathleen Durant 1

Today’s Lecture 1. Intro to No. SQL 2. No. SQL Assumptions and the CAP

Today’s Lecture 1. Intro to No. SQL 2. No. SQL Assumptions and the CAP Theorem 3. Strengths and weaknesses of No. SQL 4. Example: Mongo. DB 2

1. Intro to No. SQL 3

1. Intro to No. SQL 3

Taxonomy of No. SQL

Taxonomy of No. SQL

Typical No. SQL architecture

Typical No. SQL architecture

2. No. SQL Assumptions and the CAP Theorem 6

2. No. SQL Assumptions and the CAP Theorem 6

CAP theorem for No. SQL • What the CAP theorem really says: If you

CAP theorem for No. SQL • What the CAP theorem really says: If you cannot limit the number of • How it is interpreted: You must always give something up: consistency, faults and requests can be directed to any server and you insist on serving every request you receive then you cannot possibly be consistent availability or tolerance to failure and reconfiguration

CAP theorem for No. SQL

CAP theorem for No. SQL

9

9

Sharding of data

Sharding of data

Replica Sets

Replica Sets

3. Strengths and weaknesses of No. SQL 12

3. Strengths and weaknesses of No. SQL 12

How does No. SQL vary from RDBMS?

How does No. SQL vary from RDBMS?

Benefits of No. SQL

Benefits of No. SQL

Benefits of No. SQL

Benefits of No. SQL

Drawbacks of No. SQL

Drawbacks of No. SQL

Drawbacks of No. SQL

Drawbacks of No. SQL

ACID or BASE

ACID or BASE

4. Mongo. DB 19

4. Mongo. DB 19

What is Mongo. DB?

What is Mongo. DB?

Functionality of Mongo. DB

Functionality of Mongo. DB

Why use Mongo. DB?

Why use Mongo. DB?

Mongo. DB: CAP approach

Mongo. DB: CAP approach

Mongo. DB Data model: Hierarchical Objects

Mongo. DB Data model: Hierarchical Objects

Schema Free

Schema Free

Mongo. DB Features

Mongo. DB Features

Index Functionality

Index Functionality

CRUD operations

CRUD operations

Query operations

Query operations

Aggregated functionality

Aggregated functionality

Map reduce functionality

Map reduce functionality

Summary

Summary