pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedLISTEN question
2+ messages / 2 participants
[nested] [flat]
* LISTEN question
@ 2007-03-07 11:23 mikael-aronsson <mikael-aronsson@telia.com>
2007-03-07 14:36 ` Re: LISTEN question Andres Olarte <olarte.andres@gmail.com>
0 siblings, 1 reply; 2+ messages in thread
From: mikael-aronsson @ 2007-03-07 11:23 UTC (permalink / raw)
To: pgsql-jdbc
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.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: LISTEN question
2007-03-07 11:23 LISTEN question mikael-aronsson <mikael-aronsson@telia.com>
@ 2007-03-07 14:36 ` Andres Olarte <olarte.andres@gmail.com>
0 siblings, 0 replies; 2+ messages in thread
From: Andres Olarte @ 2007-03-07 14:36 UTC (permalink / raw)
To: mikael-aronsson <mikael-aronsson@telia.com>; +Cc: pgsql-jdbc
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
>
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2007-03-07 14:36 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-03-07 11:23 LISTEN question mikael-aronsson <mikael-aronsson@telia.com>
2007-03-07 14:36 ` Andres Olarte <olarte.andres@gmail.com>
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