Batches should never be reused and a new one will need to be created for each unit of work. Also, *run* does not spot exceptions, unlike *execute* since it does not decode the output from the server (including exceptions). This makes it slightly faster but it a tradeoff against using *execute*.
On 6 September 2015 at 02:33, <[email protected]> wrote: > After hours spent on trying to troubleshoot the problem, it seems the > issue comes from the BatchWrite class provided by py2neo. > For now, it seems that crreating a new instance of BatchWrite at each > iteration of the process and calling run() method instead of submit() may > help to solve the problem. > The problem with this "solution" is that run() doesn't seem to propagate > exceptions. :( > Investigation in progress... > > > > -- > You received this message because you are subscribed to the Google Groups > "Neo4j" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
