Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 0CBFF64FDDB for ; Tue, 14 Oct 2008 18:22:14 -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 40554-07 for ; Tue, 14 Oct 2008 18:22:11 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.188]) by postgresql.org (Postfix) with ESMTP id 439C864FDD3 for ; Tue, 14 Oct 2008 18:22:11 -0300 (ADT) Received: by nf-out-0910.google.com with SMTP id c7so1102022nfi.23 for ; Tue, 14 Oct 2008 14:22:09 -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=cDymDNZM8voeTlR+/7hPjERnKr6WnJYzrofVhktpx/o=; b=iP2lL/kjsA9QoI8wOVGBothpRaHDAq5KEf+svLc7F0uABi50FadpJAEmcxuOiwp6L7 EJWMrXHA4VOefeJmC5Bz/zbeeYsJy24FYvYC3pfA381dClISwYbceWUgB11ubKcfDvCu vfHMI3vnMkJXx7Wdhfyb0PN03Y+rIG0ZYJg/w= 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=d1kCQ1no2FRsNnsOa75To4B3sbq79XS6cr62tvBZxIkPum8vr1rybjUHEni7SLyNeG 22G4KzzPfCkSZS99tIP26K8gQQWsWT86MCeBhTuJlDVc1SuCphiWl/NGnc69pS2xECDX U06+l8KpdbQ7USECFuE2/ovRpQehkmcCl+s5M= Received: by 10.103.218.19 with SMTP id v19mr16494muq.110.1224019329636; Tue, 14 Oct 2008 14:22:09 -0700 (PDT) Received: by 10.102.247.18 with HTTP; Tue, 14 Oct 2008 14:22:09 -0700 (PDT) Message-ID: Date: Tue, 14 Oct 2008 17:22:09 -0400 From: "Merlin Moncure" To: "=?ISO-8859-1?Q?Mikkel_H=F8gh?=" Subject: Re: Drupal and PostgreSQL - performance issues? Cc: "Magnus Hagander" , pgsql-general@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <48F4F053.1060201@hagander.net> 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/574 X-Sequence-Number: 138823 On Tue, Oct 14, 2008 at 5:04 PM, Mikkel H=F8gh wrote: > After disabling SSL for localhost, I ran the tests again, and the > performance gap is reduced to about 30%. ok, now consider you are on a read only load, with lots (if I read the thread correctly) repetitive queries. mysql has a feature called the query cache which optimizes sending the same query multiple times, but invalidates when a table changes. postgresql has a very efficient locking engine, so it tends to beat mysql up when you have lots of writing going on from different users. myisam has an edge on mainly read only data in some cases...but 30% is a small price to pay for all the extra power you get (and that 30% will flip quickly if you have to do any real work). merlin