Hi Andrew, > Intuitively to me, if 100 xdmp:node-replaces are made, the > on-modify trigger should fire only once, which is also what > you suggest there?
Yes, with post-commit triggers it should be like that. I could be mistaken, but I thought pre-commit triggers are also executed only at the end of a transaction, with the sole difference that they count as part of the transaction. > However, currently it seems the trigger will be called 100 times. Are you sure it is *your* trigger that is called 100 times? Perhaps it is time to enable the CPF events, add some logging in your own triggers and start investigating the errorlog.. > The max trigger depth exceeded exception is mainly from > documents going through the CPF (word and pdf etc)... as I > think for each node-replace the CPF update triggers are also > being called.... The max trigger depth only counts for pre-commit triggers. I thought CPF was relying mostly on post-commit triggers, but I am not very familiar with the gory details of CPF's internals. I could be mistaken. Somehow it all sounds like some kind of recursive loop. Pre-commit trigger depth is usually something like a 1000, so even if a trigger would be called 100 times, that should be no problem. You could also try to increase the max depth by a factor 10, just to see if everything runs fine then. If so, it is not a recursive problem, otherwise it most likely is.. Kind regards, Geert drs. G.P.H. (Geert) Josten Consultant Daidalos BV Hoekeindsehof 1-4 2665 JZ Bleiswijk T +31 (0)10 850 1200 F +31 (0)10 850 1199 mailto:[email protected] http://www.daidalos.nl/ KvK 27164984 P Please consider the environment before printing this mail. De informatie - verzonden in of met dit e-mailbericht - is afkomstig van Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit bericht kunnen geen rechten worden ontleend. _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
