Re: [PERFORM] Drupal and PostgreSQL - performance issues?

From: "Ang Chin Han" <ang(dot)chin(dot)han(at)gmail(dot)com>
To: Mikkel Høgh <mikkel(at)hoegh(dot)org>
Cc: pgsql-performance(at)postgresql(dot)org, pgsql-general(at)postgresql(dot)org
Subject: Re: [PERFORM] Drupal and PostgreSQL - performance issues?
Date: 2008-10-13 10:36:03
Message-ID: 8c8854360810130336m11449709k9c21f4cbbbe41291@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-performance

On Mon, Oct 13, 2008 at 11:57 AM, Mikkel Høgh <mikkel(at)hoegh(dot)org> wrote:

> In any case, if anyone has any tips, input, etc. on how best to configure
> PostgreSQL for Drupal, or can find a way to poke holes in my analysis, I
> would love to hear your insights :)

It'd be more accurate to configure Drupal for PostgreSQL. We use
PostgreSQL for almost everything, including many drupal sites, but the
usage pattern of Drupal puts PostgreSQL at a disadvantage. In short,
Drupal issues a lot of small, simple SQL (100+ is the norm), that
makes tuning hard. To make it faster, you'd need to turn on Drupal's
caches (and PHP opcode caches) to reduce the number of SQLs issued. To
get even better numbers, you'd need to get Drupal to use memcached
instead of calling PostgreSQL for the simple lookups. You can use the
devel module in Drupal to have a look at the SQLs issued. Not pretty,
IMHO.

See: http://2bits.com/articles/benchmarking-postgresql-vs-mysql-performance-using-drupal-5x.html
http://2bits.com/articles/advcache-and-memcached-benchmarks-with-drupal.html

The most promising Drupal performance module for performance looks
like: http://drupal.org/project/cacherouter (900 req/s!) but I haven't
got the chance to give it a go yet.

I'm a die-hard PostgreSQL and Drupal supporter, but in this case, I
concede straight up Drupal+MySQL will always be faster than
Drupal+PostgreSQL because of the way Drupal uses the database. We
still use PostgreSQL for our Drupal sites though, because while it's
slower, it's plenty fast enough.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Greg Smith 2008-10-13 10:43:09 Re: Opteron vs. Xeon performance differences
Previous Message A. Kretschmer 2008-10-13 10:35:20 Re: PL/pgSQL stored procedure returning multiple result sets (SELECTs)?

Browse pgsql-performance by date

  From Date Subject
Next Message Scott Marlowe 2008-10-13 14:19:07 Re: [PERFORM] Drupal and PostgreSQL - performance issues?
Previous Message Greg Smith 2008-10-13 10:17:31 Re: Drupal and PostgreSQL - performance issues?