91
WHY POSTGRES SQL DESERVE NOSQL FAN RESPECT QUENTIN ADAM @ WAXZCE

Why postgres SQL deserve noSQL fan respect - Riga dev day 2016

Embed Size (px)

Citation preview

Why postgres SQL deserve noSQL fan respect

Why postgres SQL deserve noSQL fan respect

Quentin ADAM@waxzce

Quentin ADAM from the Clever Cloud@waxzce on twitter github- soundcloud instagram .Who am I ?

My day to day work : Clever Cloud, the IT automation company

And learn a lot of things about your code, apps, and good/bad designKeep your apps online. made with node.js, scala, java, ruby, php, python, go

And learn a lot of things about your code, apps, and good/bad design

Nosql world

Some of the cool thingsACID or notSchemaless or notConcurrent writing or notConsistent or eventually consistentManage mass of dataHA or not

8

Think about the data storage

Lets example

Playlist management app, multiple backend, playlist historyTo do

entitiesuser managementPlaylistsTracks history (deezer, spotify, soundcloud)

Track data is heterogeneous

Use nosqlWe need schemaless

Arbitrary data depth

External data is already json

I need unique user on email

constraints

which Tracks are played at 8pm to 9pm week days?

Complex data exploratory is hard

in paris area

Complex data exploratory is hard

by male users

Need some relationships in your data store?

order by..UI need pagination

We already know all of these

postgresql

Lets create our tracks table

Uuid as primary key & no serial

we have 2000000 users on our producthttp://www.my-platform.com/users-creation-confirm/42?valid_key=jgqsdkfhqksdjfhkjsdhf2342345

Using it to count things >_