I used to code in neo4j 2.1.x for batch within batch as following.
However, the code throws a NotInTransactionException exception in neo4j 
2.2.x.

Is this code wrong from 2.2.x?

Transaction tx = mGraphDb.beginTx();

try
{
while(itor.hasNext())
{
// DO SOMETHING
 if (count % BATCH_SIZE_GDB == 0)
{
tx.success();
tx.close();
tx = mGraphDb.beginTx();
}
 count++;
}
 tx.success();
} catch (Exception e) {
e.printStackTrace();
} finally {
tx.close();
}


-- 
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.

Reply via email to