Re: Drupal and PostgreSQL - performance issues?

From: Mikkel Høgh <mikkel(at)hoegh(dot)org>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Drupal and PostgreSQL - performance issues?
Date: 2008-10-14 21:04:36
Message-ID: F933F17A-70BC-4DB0-9491-9EEF0E79ABD9@hoegh.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-performance

After disabling SSL for localhost, I ran the tests again, and the
performance gap is reduced to about 30%.
--
Kind regards,

Mikkel Høgh <mikkel(at)hoegh(dot)org>

On 14/10/2008, at 21.17, Magnus Hagander wrote:

> Mikkel Høgh wrote:
>> On 14/10/2008, at 20.23, Daniel Verite wrote:
>>> What I've noticed on drupal-6.4 with Ubuntu 8.04 is that the default
>>> postgresql.conf has:
>>> ssl=true
>>> and since drupal doesn't allow connecting to pgsql with unix socket
>>> paths [1], what you get by default is probably TCP + SSL encryption.
>>> A crude test that just connects and disconnect to a local pg server
>>> appears to me to be 18 times faster when SSL is off.
>>> So you might want to check if setting ssl to false makes a
>>> difference
>>> for your test.
>>
>> Ouch, there's a gotcha. So enabling SSL gives you SSL connections by
>> default, even for localhost? That’s… unexpected.
>
> Yes. To avoid it, specify "hostnossl" in the pg_hba.conf file.That
> will
> refuse all SSL connections.
>
>
> //Magnus
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Merlin Moncure 2008-10-14 21:22:09 Re: Drupal and PostgreSQL - performance issues?
Previous Message Merlin Moncure 2008-10-14 20:51:29 Re: PL/pgSQL stored procedure returning multiple result sets (SELECTs)?

Browse pgsql-performance by date

  From Date Subject
Next Message Merlin Moncure 2008-10-14 21:22:09 Re: Drupal and PostgreSQL - performance issues?
Previous Message Ivan Sergio Borgonovo 2008-10-14 20:18:31 benchmark on D7 + PG 8.3 Re: Drupal and PostgreSQL - performance issues?