Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 76E0A9FB222 for ; Wed, 7 Mar 2007 10:36:46 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 85032-07 for ; Wed, 7 Mar 2007 10:36:35 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.184]) by postgresql.org (Postfix) with ESMTP id 9C2E49FB631 for ; Wed, 7 Mar 2007 10:36:34 -0400 (AST) Received: by nf-out-0910.google.com with SMTP id x4so203626nfb for ; Wed, 07 Mar 2007 06:36:32 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; 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; b=M/RqQPy+OtPp13/nlGHsLC0j8IH+NScdnZg069aDoBW30aGtUmINfBLlQMkUhQa1SffY/0vGHo3wKStVkkzUwHF3gAS+YNQ5cDcJe6dAB7WDyX8Rvj4qvZACPQt/iscRou0qsFtkf4SdGnPjbeDTKqA0zGa9WTS4WidsD+4hQVg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=DAaT5/lvkX5O0ZcVeYYWNSVOM01o6r9gGqhbyQAovO32+BsMBm9KtZcGB/PAAJa3n1giwrJCJmg1v1UzxdcimltDGHFDmkirsg0JM3jkghgEYcjfLc5EJEYO7ipLFTc4CiN0aavuOm0VWTfrYguhHN16Dcu5VYhaGsLgpKpKnS8= Received: by 10.78.201.2 with SMTP id y2mr983581huf.1173278192709; Wed, 07 Mar 2007 06:36:32 -0800 (PST) Received: by 10.78.190.3 with HTTP; Wed, 7 Mar 2007 06:36:32 -0800 (PST) Message-ID: <3fccaa690703070636h1b77ff78p3f6cf5a7e0bfee26@mail.gmail.com> Date: Wed, 7 Mar 2007 08:36:32 -0600 From: "Andres Olarte" To: mikael-aronsson Subject: Re: LISTEN question Cc: pgsql-jdbc@postgresql.org In-Reply-To: <222501c760ab$0f018360$e0be42d5@w128mtec> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <222501c760ab$0f018360$e0be42d5@w128mtec> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/69 X-Sequence-Number: 16783 Very little impact. My client uses about 30-60 LISTENS and it works great. And most of my clients are Pentium 3 computers! On 3/7/07, mikael-aronsson wrote: > Hi ! > > Does any one have any idea on the impact of using a large number of > different LISTEN, > say that I add 20 "LISTEN something;" statements will this slow down the > client much ? > > The thing is that I have 20 different tables and I would like to be notified > when something > change in any of the tables, there are timestamps so I can use SELECT * FROM > xxx > WHERE timestamp>zzz to get the changed data but going to put out 20 SELECT > queries all the time does not sound very smart so I thought I would use > LISTEN/NOTIFY instead to improve performance. > > > ---------------------------(end of broadcast)--------------------------- > TIP 5: don't forget to increase your free space map settings >