What is NoSQL ?

Preview:

Citation preview

NOSQL

WHAT IS NOSQL ?

PROBLEMNoSQL comes from Big Data, to stored large data volume:million to billions rows!SQL is too slow.

GOALSSQL are suitable for modeling, not for use.NoSQL stores are suitable for use, not for modeling.

FEATURESSchemalessScalable, because:No ACID (Atomicity, Consistency, Isolation, Durability)No link between 2 elements ‐> Very fast

DATABASES TYPESKey‐valueColumnDocumentGraph

KEY-VALUE / OVERVIEW

Key Valuejfav Jean Favierpi 3.14slama Serge Lamapic [image object]

KEY-VALUE / GOALS

WHAT IS IT ?Distributed hashmap.

WHY IS IT USED ?It's simple and store data in memory (cheap).

EXAMPLE

COLUMN / OVERVIEW

Key Name Job Schooljfav Jean Favier Teacher Smarterer

Schoolmnicolas Martin

NicolasPoliceman

slama Serge Lama Singerrcalaval Robert

CalavalTeacher Victor Hugo

COLUMN / GOALS

WHAT IS IT ?Super distributed hashmap (many values for a key).

WHY IS IT USED ?It's fast and store more complex data than a hashmap.

EXAMPLE

DOCUMENT / OVERVIEW{ 'name': 'Jean Favier', 'address': { 'street': 'Apple street', 'city': 'Paris' }, 'job': 'Teacher'}

DOCUMENT / GOALS

WHAT IS IT ?JSON document, with nested content.

WHY IS IT USED ?It store heterogeneous documents.

EXAMPLE

GRAPH / OVERVIEW

GRAPH / GOALS

WHAT IS IT ?Graph of JSON document.

WHY IS IT USED ?It simplifies the modeling of complex relationships.

EXAMPLE

SPEED BY TYPE

FROM SQL TO NOSQL

DENORMALIZE 1-1 RELATION

© Fabien Vauchelles (2015)

DENORMALIZE 1-N RELATION

Recommended