Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Persist Neo4j driver #7

Open
jeicoo opened this issue Jul 26, 2018 · 0 comments
Open

Persist Neo4j driver #7

jeicoo opened this issue Jul 26, 2018 · 0 comments

Comments

@jeicoo
Copy link

jeicoo commented Jul 26, 2018

It seems that the extension is creating the Neo4j driver and adding it to the application context.

The application context is being created and destroyed every request, that means the extension is creating the driver for each request that needs it. However, as per Neo4j documentation the driver object should be avaliable

A Neo4j client application will require a driver object instance in order to provide access to the database. This object instance should be made available to all parts of the application that need to interact with Neo4j.

https://neo4j.com/docs/developer-manual/current/drivers/client-applications/

Also, I believe it would take more time if the driver object is being created multiple times in an application instead of creating it once and creating a new session per request. What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant