Hello everyone
What are the pros and cons of using either pure neo4j transactions with template.beginTx() or starting transaction with spring's TransactionTemplate when using Spring Data Neo4j.
vs.PHP Code:Transaction tx = template.beginTx();
try {
doSomething();
tx.success();
}
finally {
tx.finish();
}
PHP Code:TransactionTemplate t = new TransactionTemplate(txManager);
t.execute(new TransactionCallback<Void>() {
@Override
public Void doInTransaction(TransactionStatus status) {
doSomething();
return null;
}
});
Best regards,
James


Reply With Quote