Re: [GENERAL] Triggers and scalability in high transaction tables.

2015-02-26 Thread Tim Uckun
I just want to make sure I understood correctly. All the triggers are firing in a single thread assigned to the connection and will be run serially no matter how many tables are firing triggers. If this is correct then yes I guess I have to create a queue of some sort and process them via an exte

Re: [GENERAL] Triggers and scalability in high transaction tables.

2015-02-26 Thread John R Pierce
On 2/26/2015 2:03 PM, Merlin Moncure wrote: I would strongly advise you not to put complex processing in triggers if at all possible. Instead have the insert operation write a record into another table which forms a queue of work to do. That queue can then be walked by another process which acc

Re: [GENERAL] Triggers and scalability in high transaction tables.

2015-02-26 Thread Jerry Sievers
Tim Uckun writes: > I want to write a trigger which runs semi-complicated code after each > insert.  I have done some reading and from what I can gather this could > cause problems because > after insert triggers "don't spill to the disk" and can cause queue > problems.   Many people sugges

Re: [GENERAL] Triggers and scalability in high transaction tables.

2015-02-26 Thread Merlin Moncure
On Thu, Feb 26, 2015 at 3:54 PM, Tim Uckun wrote: > I want to write a trigger which runs semi-complicated code after each > insert. I have done some reading and from what I can gather this could > cause problems because after insert triggers "don't spill to the disk" and > can cause queue problem