1
使用Neo4j 3.0.4,嵌入式数据库完全忽略了dbms.tx_log.rotation.retention_policy。没有差别是否从配置文件与Neo4j嵌入式数据库忽略事务日志限制
new GraphDatabaseFactory().newEmbeddedDatabaseBuilder(STORE_FOLDER).loadPropertiesFromURL(CONFIG_FILE).newGraphDatabase();
装载或用
new GraphDatabaseFactory().newEmbeddedDatabaseBuilder(STORE_FOLDER).SetConfig(GraphDatabaseSettings.keep_logical_logs, DBMS_TX_LOG_ROTATION_RETENTION_POLICY).newGraphDatabase();
它设置它不改变它是否在大小(100M size
)限制或数量(3 files
) 。它愉快地写入事务日志,直到硬盘满了。
但是GraphDatabaseSettings.logical_log_rotation_threshold
工作得很好。
配置时我错过了什么吗?我是否理解保留策略的目的,或者这是Neo4j 3.0.4中的错误?