when i use 'node-neo4j ', should i ensure there are only one 'GraphDatabase' instance ?
In other words, the following code should run just once ?
var db = new neo4j.GraphDatabase(...);
v1 was hypermedia-driven, so a new GraphDatabase instance would make some round-trip network requests to "discover" the API. Multiple instances, then, isn't efficient.
v2 is stateless, functional, and no longer hypermedia-driven. So multiple instances isn't harmful.
when i use 'node-neo4j ', should i ensure there are only one 'GraphDatabase' instance ? In other words, the following code should run just once ? var db = new neo4j.GraphDatabase(...);