Subject | Re: Since I shouldn't use COUNT.... |
---|---|
Author | Adam |
Post date | 2006-07-21T12:19:12Z |
--- In firebird-support@yahoogroups.com, "t.s." <truesaint@...> wrote:
serialising the inserts. You could use a client program with an event
monitor, however this may not work so well for web-apps.
The easiest way I can see is executing a batch file that launches isql
passing in a simple sql script. The frequency it should be run depends
on the rate of increase in counts.
Adam
>Well I don't see how a counter and a trigger will work without
> > It just requires a stored procedure to be executed periodically
> > to minimise the number or records to be summed.
> Speaking of which, any consensus on how to best do this ?
> - a cron job / scheduled task ?
> - via event monitors ?
> - a counter and a trigger ? (i.e. execute after counter reaches n)
> - forced during application startup ? (won't work for web apps, though)
> - something else ?
serialising the inserts. You could use a client program with an event
monitor, however this may not work so well for web-apps.
The easiest way I can see is executing a batch file that launches isql
passing in a simple sql script. The frequency it should be run depends
on the rate of increase in counts.
Adam