Skip to content

Commit

Permalink
Update warning admonition on USE.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefano-ottolenghi committed Jun 18, 2024
1 parent 2b0a4c2 commit e174e1a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion go-manual/modules/ROOT/pages/transactions.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,10 @@ session := driver.NewSession(ctx, neo4j.SessionConfig{
})
----

Do not rely on the link:{neo4j-docs-base-uri}/cypher-manual/current/clauses/use/[`USE`] Cypher clause for database selection with the driver.
[TIP]
Specifying the database through the configuration method is preferred over the link:{neo4j-docs-base-uri}/cypher-manual/current/clauses/use/[`USE`] Cypher clause.
If the server runs on a cluster, queries with `USE` require server-side routing to be enabled.
Queries may also take longer to execute as they may not reach the right cluster member at the first attempt, and need to be routed to one containing the requested database.


=== Request routing
Expand Down

0 comments on commit e174e1a

Please sign in to comment.