Postgres Presentation
Upcoming SlideShare
Loading in...5
×
 

Postgres Presentation

on

  • 4,885 views

A polemic regarding the virtues of Postgres compared with MySQL.

A polemic regarding the virtues of Postgres compared with MySQL.

Statistics

Views

Total Views
4,885
Slideshare-icon Views on SlideShare
4,875
Embed Views
10

Actions

Likes
1
Downloads
104
Comments
0

1 Embed 10

http://www.slideshare.net 10

Accessibility

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • In this presentation, I wish to challenge some orthodoxy within and around Rails. My main concern is that is only one good reason to use MySQL, and that reason should not appeal to most Rails developers. I will be contrasting Rails with PostgreSQL which is the most obvious alternative for this audience. The position that Rails holds as the default open source database is certainly not idiosyncratic to the Rails community. But that position is supported by DHH’s support for MySQL, along with his distaste for stored procedures and the like. My second proposition tonight is that there certainly are valid uses for code in your database, and I hope to end by raising the question of how it affects your code if you decide to make your Rails database smart for general discussion.

Postgres Presentation Postgres Presentation Presentation Transcript

  • MySQL, PostgreSQL and Rails
    • A polemic
  • Pity the poor programmer
  • Slaving away in the bit mines
  • Just store my data!
  • <polemic>
  • Network effect
  • Features
  • Features PostgreSQL MySQL
  • Multiple table types Clustering ..? MySQL
  • PostgreSQL Genetic Query Optimizer Procedural Languages Functional/Partial Indexes Oracle Compatibility Advanced Rules, Stored Procedures, Triggers
    • pgSQL (Oracle)
    • Tcl
    • Perl
    • Python
    • Java
    • PHP
    • R
    • Ruby
    • Scheme
    • sh
  • Speed
  • http://tweakers.net/reviews/657/5/database-test-dual-intel-xeon-5160-pagina-5.html
  •  
  •  
  • http://www.spec.org/jAppServer2004/results/jAppServer2004.html
  • Licence
  • From the MySQL website
  • From the MySQL website
  • http://www.kitebird.com/articles/ruby-mysql.html Guess what license?
  • 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, without fee, 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 A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN &quot;AS IS&quot; BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
  • </polemic>
  • On clever databases
  • — DHH We took a pretty radical stand: Stored procedures and all things that make your database clever are evil
  • Application database
  • Integration database
  • Integration database ✔
  • Complex processes
  • Recursive structures (etc)
  • Smart databases & Rails
    • Maintain with migrations
    • ..?
  • Fin
  • Questions
  • Postgres with Rails