ITB2015 - NoSQL For You And Me

13
NoSQL for you and me by: Brad Wood and Curt Gratz

Transcript of ITB2015 - NoSQL For You And Me

Page 1: ITB2015 - NoSQL For You And Me

NoSQL for you and me

by: Brad Wood and Curt Gratz

Page 2: ITB2015 - NoSQL For You And Me

History

#noSQL (Johan Oskarsson meeting)

Buzz word

Standards

What does it mean?

Page 3: ITB2015 - NoSQL For You And Me

History

Characteristics non-relational

open-source (some)

cluster-friendly (some)

21st Century

schema less

Page 4: ITB2015 - NoSQL For You And Me

History

Typeskey/value

document

column

graph

Page 5: ITB2015 - NoSQL For You And Me
Page 6: ITB2015 - NoSQL For You And Me

No more ACID

Atomicity - All or Nothing (transactions)

Consistency - data is never violated (constraints. validation, etc)

Isolation - operations must not see data from other non-finished

operations(locks)

Durability - state of data is persisted when operation finishes (server crash

protection)

Page 7: ITB2015 - NoSQL For You And Me

Normalisation

Less data duplication

Less storage space

Higher data

consistency/integrity

Easy to query

Updates are EASY

Page 8: ITB2015 - NoSQL For You And Me
Page 9: ITB2015 - NoSQL For You And Me

Denormalisation

Minimize the need for

joins

Reduce the number of

indexes

Reduce the number of

relationships

Updates are harder

(slower)

Page 10: ITB2015 - NoSQL For You And Me
Page 11: ITB2015 - NoSQL For You And Me
Page 12: ITB2015 - NoSQL For You And Me

Making a mental shift

In SQL we tend to want to avoid hitting the database as

much as possible

We know that it's costly when tying up connection

pools and overloading db servers

Even with indexing SQL still gets bogged down by

complex joins and huge indexes

In noSQL gets and sets ARE FAST, and not a bottleneck,

this is hard for many people to accept and absorb at first

Page 13: ITB2015 - NoSQL For You And Me

Making a mental shift

Denormalization takes

getting used to

Data integrity

Schema changes are easy