简体   繁体   中英

Neo4j Jdbc connection pool

I am using JDBC driver for Neo4j in my jersey java web application for rest api. The problem is that it takes a lot of time to open a jdbc Neo4j connection. For every rest api I am opening a neo4j connection and closing it after processing.

Which is the best connection pool I can use here in this scenario. After googling I found loads of connection pool apis for java. Which one do you recommend

Here are the neo4j jdbc drivers https://github.com/neo4j-contrib/neo4j-jdbc#neo4j-jdbc-driver

对于即将到来的Neo4j Grails插件,我正在使用tomcat jdbc池,因为它似乎是最近最常用的一个。

Neo4J 3.0 recently released with a new Java Driver . I implemented it in one of my REST APIs by initialising the driver at the start of the application and then using it throughout the app to get sessions and run cypher queries on a remote database.

The performance seems to be better compared to the Neo4J JDBC driver.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM