Subject | Re: [firebird-support] Re: Table where we add 2 000 000 rows everydays and delete them every night |
---|---|
Author | Björn Reimer |
Post date | 2012-02-14T07:46:21Z |
[...]
--
Björn Reimer - RRZE
> ufortunatly the stat i need are created mostly from trigger :(You could use a sequence/generator for that without multi user problems and very fast.
> For exemple imagine a table with a field 'NB_total_update_in_the_database' and every
> time a row is updated in any table i need to increase this value by +1. problem i can
> not do directly or i will go in deadlock (multi users database) so i need to create a
> temp table where i simply add a row with +1 and at the end of the day calculate the
> aggregate of such data to update the value of NB_total_update_in_the_database
--
Björn Reimer - RRZE