From: mikael-aronsson <mikael-aronsson@telia.com>
To: pgsql-jdbc@postgresql.org
Subject: LISTEN question
Date: Wed, 7 Mar 2007 12:23:40 +0100
Message-ID: <222501c760ab$0f018360$e0be42d5@w128mtec> (raw)
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.
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: mikael-aronsson@telia.com
Subject: Re: LISTEN question
In-Reply-To: <222501c760ab$0f018360$e0be42d5@w128mtec>
References: <222501c760ab$0f018360$e0be42d5@w128mtec>
* 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