在嵌入式Neo4j

时间:2016-12-01 08:52:53

标签: java neo4j

我需要摆脱Neo4j的逻辑日志,因为它们吃掉了整个RAM磁盘。我的图表非常庞大。我定义了嵌入在Java中的Neo4j 3.0.6数据库,如:

graphDb = new GraphDatabaseFactory().newEmbeddedDatabaseBuilder(new File(PATH + GRAPH_DATABASE_PATH)).setConfig("keep_logical_logs","false").newGraphDatabase();

我还将keep_logical_logs设置为" 4个文件"," 100M size",但它坚持保留其中的100个( neostore.transaction.db。 0到99 )每个尺寸251M !!! 感谢您的帮助。

1 个答案:

答案 0 :(得分:0)

Thank you Mattias, but it was just a silly mistake I made. I needed to remove the quotes of keep_logical_logs and import : org.neo4j.graphdb.factory.GraphDatabaseSettings.keep_logical_logs