日志密码查询 [英] Log cypher queries
问题描述
当我们使用spring jpa内置查询(如findById!)时,是否有办法记录生成的密码查询?我有一个复杂的内置查询,我需要查看其密码
Is there a way to log cypher queries that get generated when we use spring jpa inbuilt queries like findById!? I have a complex inbuilt query whose cypher I need to see
推荐答案
Neo4j可以记录所有已执行的查询.
Neo4j provides the ability to log all executed queries.
每 https://neo4j.com/docs/操作手册/当前/监视/记录/查询记录:
可以将Neo4j配置为记录在数据库中执行的查询.
Neo4j can be configured to log queries executed in the database.
必须通过将dbms.logs.query.enabled参数设置为true来启用查询日志记录.参数dbms.logs.query.threshold确定记录查询的阈值.如果执行查询所花的时间比该阈值长,则将其记录下来.将dbms.logs.query.threshold设置为0将导致记录所有查询
Query logging must be enabled by setting the dbms.logs.query.enabled parameter to true. The parameter dbms.logs.query.threshold determines the threshold for logging a query. If the execution of a query takes a longer time than this threshold, it will be logged. Setting dbms.logs.query.threshold to 0 will result in all queries being logged
这篇关于日志密码查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!