MySQL, Postgres, and Rails

Embed Size (px)

Citation preview

  • 8/14/2019 MySQL, Postgres, and Rails

    1/32

    MySQL, PostgreSQLand RailsA polemic

  • 8/14/2019 MySQL, Postgres, and Rails

    2/32

    Pity the poor programmer

  • 8/14/2019 MySQL, Postgres, and Rails

    3/32

    Slaving away in the bit mines

  • 8/14/2019 MySQL, Postgres, and Rails

    4/32

    Just store mydata!

  • 8/14/2019 MySQL, Postgres, and Rails

    5/32

  • 8/14/2019 MySQL, Postgres, and Rails

    6/32

    Network effect

  • 8/14/2019 MySQL, Postgres, and Rails

    7/32

    Features

  • 8/14/2019 MySQL, Postgres, and Rails

    8/32

    PostgreSQL

    MySQL

    Features

  • 8/14/2019 MySQL, Postgres, and Rails

    9/32

    MySQL

    Multiple table types

    Clustering

    ..?

    SQ

  • 8/14/2019 MySQL, Postgres, and Rails

    10/32

    PostgreSQL

    Genetic Query Optimizer

    ProceduralLanguages

    Functional/Partial

    Indexes

    Oracle

    Compatibility

    Advanced Rules,Stored Procedures, Triggers

    pgSQL (Oracle) Tcl Perl Python

    Java PHP R Ruby

    Scheme sh

  • 8/14/2019 MySQL, Postgres, and Rails

    11/32

    Speed

  • 8/14/2019 MySQL, Postgres, and Rails

    12/32

    http://tweakers.net/reviews/657/5/database-test-dual-intel-xeon-5160-pagina-5.html

  • 8/14/2019 MySQL, Postgres, and Rails

    13/32

  • 8/14/2019 MySQL, Postgres, and Rails

    14/32

  • 8/14/2019 MySQL, Postgres, and Rails

    15/32

    http://www.spec.org/jAppServer2004/results/jAppServer2004.html

  • 8/14/2019 MySQL, Postgres, and Rails

    16/32

    Licence

  • 8/14/2019 MySQL, Postgres, and Rails

    17/32

    From the MySQL website

  • 8/14/2019 MySQL, Postgres, and Rails

    18/32

    From the MySQL website

  • 8/14/2019 MySQL, Postgres, and Rails

    19/32

    http://www.kitebird.com/articles/ruby-mysql.html

    Gues

    swh

    atlic

    ense?

  • 8/14/2019 MySQL, Postgres, and Rails

    20/32

    The PostgreSQL license

    PostgreSQL Data Base Management System

    Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group Portions Copyright (c) 1994-1996

    Regents of the University of California

    Permission to use, copy, modify, and distribute this software and its documentation for any purpose, withoutfee, and without a written agreement is hereby granted, provided that the above copyright notice and this

    paragraph and the following two paragraphs appear in all copies.

    IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR DIRECT,

    INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS,ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE

    UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

    THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT

    NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR APARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THE

    UNIVERSITY OF CALIFORNIA HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT,

    UPDATES, ENHANCEMENTS, OR MODIFICATIONS.

  • 8/14/2019 MySQL, Postgres, and Rails

    21/32

  • 8/14/2019 MySQL, Postgres, and Rails

    22/32

    On clever

    databases

  • 8/14/2019 MySQL, Postgres, and Rails

    23/32

    DHH

    We took a pretty radical stand: Storedprocedures and all things that make your

    database clever are evil

  • 8/14/2019 MySQL, Postgres, and Rails

    24/32

    Application database

  • 8/14/2019 MySQL, Postgres, and Rails

    25/32

    Integration database

  • 8/14/2019 MySQL, Postgres, and Rails

    26/32

    Integration database

  • 8/14/2019 MySQL, Postgres, and Rails

    27/32

    Complex processes

  • 8/14/2019 MySQL, Postgres, and Rails

    28/32

    Recursive structures (etc)

  • 8/14/2019 MySQL, Postgres, and Rails

    29/32

    Smart databases & Rails Maintain with migrations

    ..?

  • 8/14/2019 MySQL, Postgres, and Rails

    30/32

    Fin

  • 8/14/2019 MySQL, Postgres, and Rails

    31/32

    Questions

  • 8/14/2019 MySQL, Postgres, and Rails

    32/32

    Postgres with Rails