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