SQL vs NoSQL

Techmeetups LX - 05-03-2013

              Tiago Franco



   www.imaginarycloud.com
WTF?


    Tiago Franco – Imaginary Cloud

    tfranco@imaginarycloud.com

    Twitter: @gamafranco

    Facebook: tiago.franco3




© ImaginaryCloud 2012                Page 2
SQL vs NoSQL




                                 3

© ImaginaryCloud 2012   Page 3
But Why????



© ImaginaryCloud 2012   Page 4
SQL – some history
• For the last decades Relational Databases
  (RDBMS) ruled the Data Stores

• Object Oriented Databases (OODBMS) were
  already here in 1985, when OOP started to rule

• RDBMS beat the OODBMS by far back in the 80’s

• SQL is the language used to interact with
  RDBMSs

                                                   5

© ImaginaryCloud 2012                     Page 5
So why now?



© ImaginaryCloud 2012   Page 6
SQL – some history (2)
• Moore’s law is out – we can’t double the
  horsepower every 18 months now

• Technology is cheap, servers are cheap, we can
  scale by adding more servers instead of more
  memory & more CPU

• We have more data then before, and ‘one size fits
  all’ is making less sense

• Bottom line: it was just a matter of time.
                                                      7

© ImaginaryCloud 2012                        Page 7
Show me the
money!



© ImaginaryCloud 2012   Page 8
9

© ImaginaryCloud 2012   Page 9
So what &
when?



© ImaginaryCloud 2012   Page 10
SQL or NoSQL ?
• NoSQL is not ACID – remember this if data
  integrity is managed on the data store

• All SQL data-stores support stored procedures,
  but so some NoSQL data-stores

• NoSQL is easier to scale at start – architecture
  doesn’t need to be deeply designed in advance

• You can always migrate data-stores + effort costs!

• Don’t use one just because it’s cool!
                                                     11

© ImaginaryCloud 2012                     Page 11
SQL vs NoSQL

TechMeetpsLX




                         Tiago Franco – Imaginary Cloud

                                  Twitter: @gamafranco
                                 Facebook: tiago.franco3
                           tfranco@imaginarycloud.com

 © ImaginaryCloud 2012                  Page 12

MySQL vs NoSQL

  • 1.
    SQL vs NoSQL TechmeetupsLX - 05-03-2013 Tiago Franco www.imaginarycloud.com
  • 2.
    WTF?  Tiago Franco – Imaginary Cloud  tfranco@imaginarycloud.com  Twitter: @gamafranco  Facebook: tiago.franco3 © ImaginaryCloud 2012 Page 2
  • 3.
    SQL vs NoSQL 3 © ImaginaryCloud 2012 Page 3
  • 4.
  • 5.
    SQL – somehistory • For the last decades Relational Databases (RDBMS) ruled the Data Stores • Object Oriented Databases (OODBMS) were already here in 1985, when OOP started to rule • RDBMS beat the OODBMS by far back in the 80’s • SQL is the language used to interact with RDBMSs 5 © ImaginaryCloud 2012 Page 5
  • 6.
    So why now? ©ImaginaryCloud 2012 Page 6
  • 7.
    SQL – somehistory (2) • Moore’s law is out – we can’t double the horsepower every 18 months now • Technology is cheap, servers are cheap, we can scale by adding more servers instead of more memory & more CPU • We have more data then before, and ‘one size fits all’ is making less sense • Bottom line: it was just a matter of time. 7 © ImaginaryCloud 2012 Page 7
  • 8.
    Show me the money! ©ImaginaryCloud 2012 Page 8
  • 9.
  • 10.
    So what & when? ©ImaginaryCloud 2012 Page 10
  • 11.
    SQL or NoSQL? • NoSQL is not ACID – remember this if data integrity is managed on the data store • All SQL data-stores support stored procedures, but so some NoSQL data-stores • NoSQL is easier to scale at start – architecture doesn’t need to be deeply designed in advance • You can always migrate data-stores + effort costs! • Don’t use one just because it’s cool! 11 © ImaginaryCloud 2012 Page 11
  • 12.
    SQL vs NoSQL TechMeetpsLX Tiago Franco – Imaginary Cloud Twitter: @gamafranco Facebook: tiago.franco3 tfranco@imaginarycloud.com © ImaginaryCloud 2012 Page 12