Skip to content

Better handling for multiple events in a transaction #172

@jrgleason

Description

@jrgleason

Currently if try an async thread loop firing off Cypher requests Neo4J barfs saying 'you are trying to run requests while another is running'.

My work around for now is using the asynch library....

async.eachSeries(regulation.sources, function iterator(source, callback){
    mergeSource(source, transaction, callback);
}, function(err){
    if(err){
      transaction.rollback("Problem adding source");
      throw err;
    }
    transaction.commit(function () { });
}); 

It would be nice if there was a way to handle this in node-neo4j

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions