Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 5955D64FD96 for ; Tue, 14 Oct 2008 11:05:52 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 42367-05 for ; Tue, 14 Oct 2008 11:05:39 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from blu0-omc2-s16.blu0.hotmail.com (blu0-omc2-s16.blu0.hotmail.com [65.55.111.91]) by postgresql.org (Postfix) with ESMTP id 58C8464FDA8 for ; Tue, 14 Oct 2008 11:05:39 -0300 (ADT) Received: from BLU142-W25 ([65.55.111.72]) by blu0-omc2-s16.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 14 Oct 2008 07:05:36 -0700 Message-ID: Content-Type: multipart/alternative; boundary="_eb481e2e-df19-4cd2-9f6f-339ffca65ba3_" X-Originating-IP: [65.96.228.65] From: Martin Gainty To: Ang Chin Han , Scott Marlowe CC: Ivan Sergio Borgonovo , Subject: Re: Drupal and PostgreSQL - performance issues? Date: Tue, 14 Oct 2008 10:05:36 -0400 Importance: Normal In-Reply-To: <8c8854360810140647n58abc9bend377e0e234dd39a9@mail.gmail.com> References: <2434A118-CEFA-43A9-BA88-006EC1F80326@hoegh.org> <200810122214.53558.uwe@oss4u.com> <20081013090228.248a665f@dawn.webthatworks.it> <20081014114011.0ebe495a@dawn.webthatworks.it> <8c8854360810140647n58abc9bend377e0e234dd39a9@mail.gmail.com> MIME-Version: 1.0 X-OriginalArrivalTime: 14 Oct 2008 14:05:36.0484 (UTC) FILETIME=[EE521240:01C92E05] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 200810/533 X-Sequence-Number: 138782 --_eb481e2e-df19-4cd2-9f6f-339ffca65ba3_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MG>comments prefixed with MG> > From: ang.chin.han@gmail.com > To: scott.marlowe@gmail.com > Subject: Re: [GENERAL] Drupal and PostgreSQL - performance issues? > CC: mail@webthatworks.it=3B pgsql-general@postgresql.org >=20 > On Tue=2C Oct 14=2C 2008 at 8:56 PM=2C Scott Marlowe wrote: > > On Tue=2C Oct 14=2C 2008 at 3:40 AM=2C Ivan Sergio Borgonovo > > wrote: > >> On Mon=2C 13 Oct 2008 20:45:39 -0600 > >> "Joshua Tolley" wrote: > >> > >> Premise: > >> I'm not sustaining that the "default" answers are wrong=2C but they ar= e > >> inadequate. > >> BTW the OP made a direct comparison of pgsql and mysql running > >> drupal. That's a bit different than just asking: how can I improve > >> PostgreSQL performances. > > > > Sadly=2C no one has run any meaningful benchmarks so far. >=20 > Not sure about "meaningful"=2C but: > http://2bits.com/articles/benchmarking-postgresql-vs-mysql-performance-us= ing-drupal-5x.html > Their attached config file shows a relatively untuned postgresql > config=2C but in *Drupal's* case=2C I'm not sure how else tweaking the > config would help when it shows: "Executed 99 queries in 67.81 > milliseconds." which in itself is not too shabbly=2C but that points > towards Drupal's inclination to issue a *lot* of small=2C simple > queries. MG>default behaviour of ISAM DB's >=20 > > Actually the most common answer is to ask them if they've actually > > used a realistic benchmark. Then tune. >=20 > The benchmark is a mostly read-only Drupal site -- a few admins=2C but a > lot of readers. Drupal as a benchmark is skewed towards lots and lots > of small=2C simple queries=2C which MyISAM excels at. The long term fix > ought to be to help the Drupal team to make it MG>What about INNODB is Drupal forgetting the default engine for 5.x? >=20 > The front page of one my site=2C even with some caching turned on=2C but > with a logged in user=2C shows 389 queries just to generate it=2C mostly > consisting of queries like "SELECT dst FROM url_alias WHERE src =3D > '$link' AND language IN('en'=2C '') ORDER BY language DESC". Explain > analyze shows that postgresql happily uses the index to grab the > correct value=2C in less than 0.04 ms. But it's still not fast enough=2C > esp. when Drupal stupidly issues some of the exact same queries up to > 9 times! MG>isnt this in query_cache..why is Drupal going braindead on this item? >=20 > This=2C to me=2C is clearly some thing to be fixed at Drupal's level. > Joshua Drake is on the right path -- helping the Drupal folks treat > the database as a database instead of a blind data store. This is > something I'm working on as well on Drupal's code base=2C but it looks > like it wouldn't be making to the mainstream Drupal release anything > soon as the changes are too drastic. MG>From what i've been reading the author doesnt work on drupal anymore MG>If we could get access to the php source maybe we could fix this..? >=20 > --=20 > Sent via pgsql-general mailing list (pgsql-general@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-general _________________________________________________________________ Get more out of the Web. Learn 10 hidden secrets of Windows Live. http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!5= 50F681DAD532637!5295.entry?ocid=3DTXT_TAGLM_WL_domore_092008= --_eb481e2e-df19-4cd2-9f6f-339ffca65ba3_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MG>=3Bcomments prefixed with MG>=3B

>=3B From: ang.chin.han@gm= ail.com
>=3B To: scott.marlowe@gmail.com
>=3B Subject: Re: [GENER= AL] Drupal and PostgreSQL - performance issues?
>=3B CC: mail@webthatw= orks.it=3B pgsql-general@postgresql.org
>=3B
>=3B On Tue=2C Oct = 14=2C 2008 at 8:56 PM=2C Scott Marlowe <=3Bscott.marlowe@gmail.com>=3B = wrote:
>=3B >=3B On Tue=2C Oct 14=2C 2008 at 3:40 AM=2C Ivan Sergio = Borgonovo
>=3B >=3B <=3Bmail@webthatworks.it>=3B wrote:
>= =3B >=3B>=3B On Mon=2C 13 Oct 2008 20:45:39 -0600
>=3B >=3B>= =3B "Joshua Tolley" <=3Beggyknap@gmail.com>=3B wrote:
>=3B >=3B&= gt=3B
>=3B >=3B>=3B Premise:
>=3B >=3B>=3B I'm not sustai= ning that the "default" answers are wrong=2C but they are
>=3B >=3B&= gt=3B inadequate.
>=3B >=3B>=3B BTW the OP made a direct compariso= n of pgsql and mysql running
>=3B >=3B>=3B drupal. That's a bit di= fferent than just asking: how can I improve
>=3B >=3B>=3B PostgreS= QL performances.
>=3B >=3B
>=3B >=3B Sadly=2C no one has run = any meaningful benchmarks so far.
>=3B
>=3B Not sure about "mean= ingful"=2C but:
>=3B http://2bits.com/articles/benchmarking-postgresql= -vs-mysql-performance-using-drupal-5x.html
>=3B Their attached config = file shows a relatively untuned postgresql
>=3B config=2C but in *Drup= al's* case=2C I'm not sure how else tweaking the
>=3B config would hel= p when it shows: "Executed 99 queries in 67.81
>=3B milliseconds." whi= ch in itself is not too shabbly=2C but that points
>=3B towards Drupal= 's inclination to issue a *lot* of small=2C simple
>=3B queries.
MG= >=3Bdefault behaviour of ISAM DB's

>=3B
>=3B >=3B Actual= ly the most common answer is to ask them if they've actually
>=3B >= =3B used a realistic benchmark. Then tune.
>=3B
>=3B The benchm= ark is a mostly read-only Drupal site -- a few admins=2C but a
>=3B lo= t of readers. Drupal as a benchmark is skewed towards lots and lots
>= =3B of small=2C simple queries=2C which MyISAM excels at. The long term fix=
>=3B ought to be to help the Drupal team to make it
MG>=3BWhat a= bout INNODB is Drupal forgetting the default engine for 5.x?

>=3B =
>=3B The front page of one my site=2C even with some caching turned o= n=2C but
>=3B with a logged in user=2C shows 389 queries just to gener= ate it=2C mostly
>=3B consisting of queries like "SELECT dst FROM url_= alias WHERE src =3D
>=3B '$link' AND language IN('en'=2C '') ORDER BY = language DESC". Explain
>=3B analyze shows that postgresql happily use= s the index to grab the
>=3B correct value=2C in less than 0.04 ms. Bu= t it's still not fast enough=2C
>=3B esp. when Drupal stupidly issues = some of the exact same queries up to
>=3B 9 times!
MG>=3Bisnt thi= s in query_cache..why is Drupal going braindead on this item?
>=3B >=3B This=2C to me=2C is clearly some thing to be fixed at Drupal's leve= l.
>=3B Joshua Drake is on the right path -- helping the Drupal folks = treat
>=3B the database as a database instead of a blind data store. T= his is
>=3B something I'm working on as well on Drupal's code base=2C = but it looks
>=3B like it wouldn't be making to the mainstream Drupal = release anything
>=3B soon as the changes are too drastic.
MG>=3B= From what i've been reading the author doesnt work on drupal anymore
MG&= gt=3BIf we could get access to the php source maybe we could fix this..?
>=3B
>=3B --
>=3B Sent via pgsql-general mailing list (p= gsql-general@postgresql.org)
>=3B To make changes to your subscription= :
>=3B http://www.postgresql.org/mailpref/pgsql-general


Get more out of the Web. Learn 10 hidden secrets of Windows Live. Learn Now = --_eb481e2e-df19-4cd2-9f6f-339ffca65ba3_--