orientechnologies / orientdb

OrientDB is the most versatile DBMS supporting Graph, Document, Reactive, Full-Text and Geospatial models in one Multi-Model product. OrientDB can run distributed (Multi-Master), supports SQL, ACID Transactions, Full-Text indexing and Reactive Queries.
https://orientdb.dev
Apache License 2.0
4.73k stars 869 forks source link

Best Practice for connections #6637

Closed davidbprice closed 8 years ago

davidbprice commented 8 years ago

OrientDB Version, operating system, or hardware.

We connect from the client to the nodjs server via webSockets as the communication is bi-directional. That presents 3 approaches for the connections (server, database) to orientdb

  1. 'global' array of connection in the module that interfaces with orient
  2. Per socket array of connections that are closed when the socket is closed
  3. Create, use, close connection for each request to the database. [Request can be multi-step]

What is the recommended approach by orient? And did I miss this in the orientjs documentation?

lvca commented 8 years ago

This is a question, not an issue. Please post it on StackOverflow by using the “orientdb” tag:

http://stackoverflow.com/search?q=orientdb

Or you can post it to the Community Group (Stack Overflow answers usually come earlier):

https://groups.google.com/forum/#!forum/orient-database

Thanks.