Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id B72F46501AD for ; Wed, 30 Jul 2008 15:59:19 -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 13412-09 for ; Wed, 30 Jul 2008 15:59:14 -0300 (ADT) X-Greylist: delayed 00:18:24.958233 by SQLgrey-1.7.6 Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.29]) by postgresql.org (Postfix) with ESMTP id 72A9C650175 for ; Wed, 30 Jul 2008 15:59:16 -0300 (ADT) Received: by yw-out-2324.google.com with SMTP id 3so86887ywj.73 for ; Wed, 30 Jul 2008 11:59:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.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=N/n/uxtNg2USckt+h9kqTeo3OOxIpBvSM3UPiTOYjU4=; b=Tj05PGBNi685dSMoMM+rbFgF0jQhl1XIjZ44Vqzni/uthWP6tpxovT7Cdn6VQzT2Ms lGlJi5gx7xTQCfq+oR7qF0HCu0r6IEhqsA7epNyue275XHjU7MC23ZRvqa7VeJjFh9kA yIFoxQoP8azYNlzZaCxyHKcxJ4B/8C+bNGZHE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.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=UwpMek4n9k7hU47aV6CCPNQwW7fuEl7GBS0kA9UGXKq66OI1TPFybI9pU8BEtGVMk6 sihJHFQT5sAI2SuPt/veJU0IYVxiBzGA8/n1aD/VNmzSeyDxQ1pW4v8yKjl+iYORYmqQ wJLWRJv0yvGzx1giGFhyF1ffcbfFThBxd/f1Q= Received: by 10.114.148.2 with SMTP id v2mr8987364wad.173.1217442856826; Wed, 30 Jul 2008 11:34:16 -0700 (PDT) Received: by 10.114.15.5 with HTTP; Wed, 30 Jul 2008 11:34:16 -0700 (PDT) Message-ID: <226a19190807301134p188cf6d7gaf829b10430629aa@mail.gmail.com> Date: Wed, 30 Jul 2008 20:34:16 +0200 From: "Dennis Brakhane" To: "=?UTF-8?Q?Faludi_G=C3=A1bor?=" Subject: Re: how does pg handle concurrent queries and same queries Cc: pgsql-performance@postgresql.org In-Reply-To: <000301c8f07d$4bee0f10$e3ca2d30$@hu> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <000301c8f07d$4bee0f10$e3ca2d30$@hu> 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: 200807/257 X-Sequence-Number: 30857 Slightly off-topic, but judging from the fact that you were able to "fix" the query, it seems you have some way to modify the application code itself. In that case, I'd try to implement caching (at least for this statement) on the application side, for example with memcached.