Re: Transaction timeouts

2017-07-10 Thread Michael Brohl
Hi Max, you can make use of TransactionUtil, see WebToolsService#entityExportAll for an example. The main pattern is // start transaction boolean beganTx = TransactionUtil.begin(); // iterate through generic values and store them, count numberWritten ... // commit after 500 values

Transaction timeouts

2017-07-10 Thread Max Peak
Greetings all, I have a groovy script ( not a service) that collects (scrapes) data, processes, and submits to db. If there are too many records, no error is thrown but transaction timeout causes no records committed. Is there a way to call forced commits occasionally during execution to