Re: Drupal and PostgreSQL - performance issues?

From: DelGurth <delgurth(at)gmail(dot)com>
To: "Tomasz Ostrowski" <tometzky(at)batory(dot)org(dot)pl>, "Mikkel H?gh" <mikkel(at)hoegh(dot)org>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Drupal and PostgreSQL - performance issues?
Date: 2008-10-16 15:09:44
Message-ID: 10268b3e0810160809l3f16fba3k1d45271fbbe865b@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-performance

On Thu, Oct 16, 2008 at 4:40 PM, Stephen Frost <sfrost(at)snowman(dot)net> wrote:
> * Tomasz Ostrowski (tometzky(at)batory(dot)org(dot)pl) wrote:
> I don't see 'limit 1' anywhere in that patch.. And you don't want to
> use 'limit 1' *and* count(*), that doesn't do what you're expecting
> (since count(*) is an aggregate and limit 1 is applied after). You
> really want to do something more like:
>
> select true from tab1 limit 1;
>
> And then test if you got back any rows or not (which might be what
> *your* patch does, hadn't looked at it yet).
>
> Thanks,
>
> Stephen

Seems Tomasz linked to the wrong patch. The patch he meant was:
http://drupal.org/files/issues/drupal_lookup_path-6.x.patch.txt

Or better... he linked to the correct patch (for drupal 5.x) but the
user Earnie made a mistake or something in the 5.x patch, seeing the
comment[1] that the patches should be the same...

Also nice to see people "benchmark" differences by just executing a
query once[2][3]....

Wessel

[1] http://drupal.org/node/196862#comment-648511
[2] http://drupal.org/node/196862#comment-649791
[3] http://drupal.org/node/196862#comment-649928

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message James Hitz 2008-10-16 15:18:39 Re: Chart of Accounts
Previous Message Roderick A. Anderson 2008-10-16 14:52:09 Re: Problems with Timezones in Australia

Browse pgsql-performance by date

  From Date Subject
Next Message Tomasz Ostrowski 2008-10-16 15:26:24 Re: Drupal and PostgreSQL - performance issues?
Previous Message Stephen Frost 2008-10-16 14:40:47 Re: Drupal and PostgreSQL - performance issues?