pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Olarte <olarte.andres@gmail.com>
To: mikael-aronsson <mikael-aronsson@telia.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: LISTEN question
Date: Wed, 7 Mar 2007 08:36:32 -0600
Message-ID: <3fccaa690703070636h1b77ff78p3f6cf5a7e0bfee26@mail.gmail.com> (raw)
In-Reply-To: <222501c760ab$0f018360$e0be42d5@w128mtec>
References: <222501c760ab$0f018360$e0be42d5@w128mtec>

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 <mikael-aronsson@telia.com> 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
>



view thread (2+ messages)

Message-ID: <3fccaa690703070636h1b77ff78p3f6cf5a7e0bfee26@mail.gmail.com>
Permalink:  ../3fccaa690703070636h1b77ff78p3f6cf5a7e0bfee26@mail.gmail.com/
Also on:    postgresql.org/message-id/3fccaa690703070636h1b77ff78p3f6cf5a7e0bfee26@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: olarte.andres@gmail.com, mikael-aronsson@telia.com
  Subject: Re: LISTEN question
  In-Reply-To: <3fccaa690703070636h1b77ff78p3f6cf5a7e0bfee26@mail.gmail.com>
  References: <222501c760ab$0f018360$e0be42d5@w128mtec> <3fccaa690703070636h1b77ff78p3f6cf5a7e0bfee26@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox