Re: Postgres vr.s MySQL- style differences?

From: Andrew Sullivan <ajs(at)crankycanuck(dot)ca>
To: pgsql-advocacy(at)postgresql(dot)org
Subject: Re: Postgres vr.s MySQL- style differences?
Date: 2007-05-28 20:12:14
Message-ID: 20070528201214.GC9830@phlogiston.dyndns.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-advocacy

On Mon, May 28, 2007 at 09:37:53PM +0200, Lukas Kahwe Smith wrote:

> inside the database. Which is all kind of ok, as long as you never mess
> with the database through anything but your single middle tier
> implementation.

That's a pretty big if. It's part of the reason I really dislike the
idea of moving integrity work out of the db and into the application.
For it's not only ensuring the data only gets updated by the
application that you need worry about; you also have to make sure
that all the application programmers (and there will be more than
one, for any application that lasts any length of time or does
anything non-trivial) do all the integrity stuff in the same way.
And they rarely do. The whole point of centralising your data is not
only to share it; it's to share it in a consistent way. Otherwise,
why not just dump it on the filesystem?

> My point is, there are solid reasons for writing applications that use
> the database as a mostly stupid data store with very efficient retrieval
> and these applications tend to also perform pretty well regardless of
> what RDBMS you stick underneath.

RDBMS are often not actually very efficient retrieval engines. If
that's what you need, straight filesystem access is a better bet.
The _R_ in RDBMS is there for a reason, and if you're not going to
use your database in a relational way, then you don't need an RDBMS.
You _can_ use the RDBMS as a mostly stupid data store, and it likely
won't break anything. But it seems a waste of computing cycles to
me. Often, the "stupid datastore" systems I've seen look like
they've used SQL because that was the hammer the programmer had,
rather than the right tool for the job. (This is optimising for
developer learning curve rather than anything else. Also a
legitimate trade-off, if you want to make it, so long as you know
you're doing so.)

A

--
Andrew Sullivan | ajs(at)crankycanuck(dot)ca
I remember when computers were frustrating because they *did* exactly what
you told them to. That actually seems sort of quaint now.
--J.D. Baldwin

In response to

Responses

Browse pgsql-advocacy by date

  From Date Subject
Next Message Jim Nasby 2007-05-29 00:11:27 Re: Postgres vr.s MySQL- style differences?
Previous Message Lukas Kahwe Smith 2007-05-28 19:37:53 Re: Postgres vr.s MySQL- style differences?