Tags: performanceTags: tuningTags: driverTags: transactionTags: read onlyTags: Read ReplicaTags: leaderTags: follower
What is the benefit of marking READ queries?
- Cypher queries explicitly marked as READ will be routed to the follower nodes.
- This reduces the load on the leader node, helping it serve WRITE queries more efficiently.
How to explicitly mark queries as READ in the official drivers from Neo4j?
You can specify a transaction as a read transaction using the inbuilt read-transaction method (read_transaction / ReadTransaction, etc.).
For the exact syntax for specifying queries as READ (read-only) while using one of the official Neo4j drivers, please refer to the corresponding driver's manual or the Information listed below:
Please sign in to leave a comment.