thingdom / node-neo4j

[RETIRED] Neo4j graph database driver (REST API client) for Node.js
Apache License 2.0
925 stars 135 forks source link

when i use 'node-neo4j ', should i ensure there are only one 'GraphDatabase' instance ? #175

Closed pangguoming closed 8 years ago

pangguoming commented 8 years ago

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(...);

aseemk commented 8 years ago

With node-neo4j v1: yes, you should ensure only one GraphDatabase instance. With node-neo4j v2: no harm in multiple GraphDatabase instances. =)

Hope this helps!

aseemk commented 8 years ago

For a bit more detail: