Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
Hi,
the values in the documentation on connection pool management are misleading for the javascript example. It took a while for me to find out that the values are interpreted as milliseconds. (See the javascript driver API docs)
The other languages have values in seconds or minutes. So I suggest the following improvement:
const driver = neo4j.driver(uri, neo4j.auth.basic(user, password),
{
maxConnectionLifetime: 30*60*1000, // 30 minutes
maxConnectionPoolSize: 50,
connectionAcquisitionTimeout: 2*60*1000 // 2 minutes
}
);
to match the values for the java example.
Regards,
Dagmar