Re: Survey results on Oracle/M$NT4 to PG72/RH72 migration

From: Matthew Kirkwood <matthew(at)hairy(dot)beasts(dot)org>
To: Jean-Paul ARGUDO <jean-paul(dot)argudo(at)idealx(dot)com>
Cc: Hannu Krosing <hannu(at)krosing(dot)net>, Zeugswetter Andreas SB SD <ZeugswetterA(at)spardat(dot)at>, <pgsql-hackers(at)postgresql(dot)org>, David BARTH <dbarth(at)idealx(dot)com>, Nat MAKAREVITCH <nat(at)idealx(dot)com>, Nicolas NICLAUSSE <nicolas(dot)niclausse(at)idealx(dot)com>, Sébastien DINOT <sebastien(dot)dinot(at)idealx(dot)com>
Subject: Re: Survey results on Oracle/M$NT4 to PG72/RH72 migration
Date: 2002-03-14 16:15:25
Message-ID: Pine.LNX.4.33.0203141612330.3998-100000@sphinx.mythic-beasts.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, 14 Mar 2002, Jean-Paul ARGUDO wrote:

> This daemon wakes up every 5 seconds. It scans (SELECT...) for new
> insert in a table (lika trigger). When new tuples are found, it
> launches the work. The work consist in computing total sales of a big
> store...

You might find it worthwhile to investigate "listen" and
"notify" -- combined with a rule or trigger, you can get
this effect in near-real-time

You'll probably still want a sleep(5) at the end of the
loop so you can batch a reasonable number of updates if
there's a lot going on.

Matthew.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Stephan Szabo 2002-03-14 16:18:35 Re: insert statements
Previous Message Doug McNaught 2002-03-14 16:05:08 Re: [HACKERS] problems with Tomcat and postgres