You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a problem accessing Neo4j Aura databases--the connection times out and closes if unused after 60 minutes. It's necessary to trap the org.neo4j.driver.exceptions.SessionExpiredException and close and reopen the connection to solve this. We don't automatically close the driver after each query because doing so seems to incure a significant memory leak (about 500k bytes each time).
Neo4j says to configure the driver for a 50 minute max lifetime: here. This is done by calling with the Config builder's withMaxConnectionLifetime method, but that isn't exposed in the neo4j-clj.core/config function.
There are a large number of Config builder functions--is it worth supporting more of them in config or would it be better to delegate that responsibility to the calling program and expose a connect variant that accepts a built Config object?
The text was updated successfully, but these errors were encountered:
There is a problem accessing Neo4j Aura databases--the connection times out and closes if unused after 60 minutes. It's necessary to trap the
org.neo4j.driver.exceptions.SessionExpiredException
and close and reopen the connection to solve this. We don't automatically close the driver after each query because doing so seems to incure a significant memory leak (about 500k bytes each time).Neo4j says to configure the driver for a 50 minute max lifetime: here. This is done by calling with the Config builder's
withMaxConnectionLifetime
method, but that isn't exposed in theneo4j-clj.core/config
function.There are a large number of Config builder functions--is it worth supporting more of them in
config
or would it be better to delegate that responsibility to the calling program and expose aconnect
variant that accepts a builtConfig
object?The text was updated successfully, but these errors were encountered: