Re: Is PostgreSQL an easy choice for a large CMS?

From: Philip Hallstrom <postgresql(at)philip(dot)pjkh(dot)com>
To: Scott Marlowe <smarlowe(at)g2switchworks(dot)com>
Cc: Tony Lausin <tonylausin(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Is PostgreSQL an easy choice for a large CMS?
Date: 2006-05-01 17:08:26
Message-ID: 20060501120142.E4031@bravo.pjkh.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> On Sun, 2006-04-30 at 14:32, Tony Lausin wrote:
>>> [ rotfl... ] MySQL will fall over under any heavy concurrent-write
>>> scenario. It's conceivable that PG won't do what you need either,
>>> but if not I'm afraid you're going to be forced into Oracle or one
>>> of the other serious-money DBs.
>>>
>>> regards, tom lane
>>
>> Hi Tom,
>>
>> That's a scary idea - being forced into Oracle or Sybase. Isn't
>> Slashdot.org still running strongly off of MySQL?
>
> Depends on how you define strongly. Slashdot has a LOT of code in place
> to cache the content so it never has to hit the database directly.
> Basically, every X seconds, the data creating the site is ripped outta
> the database and produced as static content so that the writes and reads
> don't clobber each other. And it still takes a pretty big and fast
> machine to handle the load.

I think slashdot uses memcache...

http://www.danga.com/memcached/users.bml

I would also read this about mysql's table locking:

http://dev.mysql.com/doc/refman/4.1/en/table-locking.html

Specifically, regarding myisam tables:

"Table locking enables many threads to read from a table at the same time,
but if a thread wants to write to a table, it must first get exclusive
access. During the update, all other threads that want to access this
particular table must wait until the update is done."

It doesn't take very many writes before this *really* becomes a problem.
We're implementing memcache at work to help with this issue...

-philip

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Wes 2006-05-01 17:16:46 Leading substrings - alternatives with 8.1.3?
Previous Message Guy Rouillier 2006-05-01 16:51:57 Re: How would I write this query...