Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 2EDE264FCBD for ; Mon, 13 Oct 2008 01:48:33 -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 58678-07 for ; Mon, 13 Oct 2008 01:48:30 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.229]) by postgresql.org (Postfix) with ESMTP id 436EB64FC86 for ; Mon, 13 Oct 2008 01:48:30 -0300 (ADT) Received: by rv-out-0506.google.com with SMTP id b25so1344786rvf.43 for ; Sun, 12 Oct 2008 21:48:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=5hWP6hE74owDmNWpPen01Kas85jFkVRyNipxB6S9vSo=; b=BInzDvXeN1SCcUF4kPlyActMOqRk0COUldQgj25g7nJeR1MnTgE7yN7PHlnXIfDjdo P9XLg6JIfrObJWpNbEpvGJcvJG3P4aGYwqDYKZXk5nvP+5uYORZPFgbNGi1GF/Qbihtn 2BmDsLmVvKLhnF2GQoIyD8idrs4I0NnIetoYU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=DNnpo6W3RbpHJnyNeIkKQGyuSJpnqplFqAXcV7UaYnblWSaTLjMvKFQERIH9yvjQbv +4Jd08hU4Hvt+YtI+hHoeIdf7WnkdY6J1O3+Vtv/sVOGcgLLjSu2HejP7EoXtrWOyWmc LaQZyEYzIFZ9FdG4M2ADf21Y+HWsgYIjGieoU= Received: by 10.114.177.1 with SMTP id z1mr4835597wae.37.1223873305973; Sun, 12 Oct 2008 21:48:25 -0700 (PDT) Received: by 10.114.39.11 with HTTP; Sun, 12 Oct 2008 21:48:25 -0700 (PDT) Message-ID: Date: Sun, 12 Oct 2008 22:48:25 -0600 From: "Scott Marlowe" To: "=?ISO-8859-1?Q?Mikkel_H=F8gh?=" Subject: Re: [PERFORM] Drupal and PostgreSQL - performance issues? Cc: pgsql-performance@postgresql.org, pgsql-general@postgresql.org In-Reply-To: <2434A118-CEFA-43A9-BA88-006EC1F80326@hoegh.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <2434A118-CEFA-43A9-BA88-006EC1F80326@hoegh.org> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200810/446 X-Sequence-Number: 138695 On Sun, Oct 12, 2008 at 9:57 PM, Mikkel H=F8gh wrote: > Hi there, > > I've been toying with using PostgreSQL for some of my Drupal sites for so= me > time, and after his session at OpenSourceDays in Copenhagen last weekend, > Magnus Hagander told me that there a quite a few in the PostgreSQL commun= ity > using Drupal. > > I have been testing it a bit performance-wise, and the numbers are worryi= ng. > In my test, MySQL (using InnoDB) had a 40% lead in performance, but I'm > unsure whether this is indicative for PostgreSQL performance in general o= r > perhaps a misconfiguration on my part. The test you're running is far too simple to tell you which database will actually be faster in real world usage. No updates, no inserts, no interesting or complex work goes into just delivering the front page over and over. I suggest you invest some time learning how to drive a real load testing tool like jmeter and build realistic test cases (with insert / update / delete as well as selects) and then see how the databases perform with 1, 2, 5, 10, 50, 100 consecutive threads running at once. Without a realistic test scenario and with no connection pooling and with no performance tuning, I don't think you should make any decisions right now about which is faster. It may well be that in a more realistic testing that mysql keeps up through 5 or 10 client connections then collapses at 40 or 50, while pgsql keeps climbing in performance. This is the performance curve I'm used to seeing from both dbs under heavy load. In simple terms, you're kicking the tires and making a decision based on th= at.