From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: J Sisson <sisson.j@gmail.com>
To: Rob Wultsch <wultsch@gmail.com>
Cc: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Re: Time to put theory to the test?
Date: Tue, 26 Apr 2011 09:58:49 -0500
Message-ID: <4DB69759020000250003CE84@gw.wicourts.gov> (raw)
In-Reply-To: <BANLkTikq_W=7M1Z-Kr1CyLgDkq8AgnBKXg@mail.gmail.com>
References: <BANLkTi=17nkF9KiU24VFySbwLH_acKjBZQ@mail.gmail.com>
<BANLkTikzg0JMtXPB0E=v_=GTPh2AoAf3oQ@mail.gmail.com>
<BANLkTikq_W=7M1Z-Kr1CyLgDkq8AgnBKXg@mail.gmail.com>
J Sisson <sisson.j@gmail.com> wrote:
> Rob Wultsch <wultsch@gmail.com> wrote:
>> Tip from someone that manages thousands of MySQL servers: Use
>> InnoDB when using MySQL.
>
> Granted, my knowledge of PostgreSQL (and even MSSQL) far surpasses
> my knowledge of MySQL, but if InnoDB has such amazing benefits as
> being crash safe, and even speed increases in some instances, why
> isn't InnoDB default?
Because it's not as fast as the unsafe ISAM implementation for most
benchmarks.
There is one minor gotcha in InnoDB (unless it's been fixed since
2008): the release of locks is not atomic with the persistence of
the data in the write-ahead log (which makes it S2PL but not SS2PL).
So it is possible for another connection to see data that won't be
there after crash recovery. This is justified as an optimization.
Personally, I would prefer not to see data from other transactions
until it has actually been successfully committed.
-Kevin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: Kevin.Grittner@wicourts.gov, sisson.j@gmail.com, wultsch@gmail.com
Subject: Re: Time to put theory to the test?
In-Reply-To: <4DB69759020000250003CE84@gw.wicourts.gov>
References: <BANLkTi=17nkF9KiU24VFySbwLH_acKjBZQ@mail.gmail.com> <BANLkTikzg0JMtXPB0E=v_=GTPh2AoAf3oQ@mail.gmail.com> <BANLkTikq_W=7M1Z-Kr1CyLgDkq8AgnBKXg@mail.gmail.com> <4DB69759020000250003CE84@gw.wicourts.gov>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox