Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Is there a demo of Galaxybase's driver-api data query connection pool to get connections?

I’m new to the driver api of Galaxybase graph database. Is there a demo of Galaxybase’s driver-api data query connection pool to get connections?

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

The connection pool is maintained internally by driver, and users can adjust the number of connections in the connection pool.

The method to modify the connection pool:

String uri = "bolt://192.168.2.56:7687".
AuthToken basic = AuthTokens.basic("admin", "admin").
Config config = Config.build()
        .withConnectionTimeout(Integer.MAX_VALUE, TimeUnit.MILLISECONDS)
        .withLogging(new ConsoleLogging(Level.OFF))
        // The default here is 100, can be changed to smaller
        .withMaxConnectionPoolSize(100) 
        .toConfig().
Driver driver = GraphDatabase.driver(uri, basic, config).
Graph graph = galaxybase.driver(driver, "sf100").

System.out.println(graph.getAllVertexCount()).

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading