Neo4j database size grows -
im using neo4j 3.0.1 community, , have few gbs of data. data become outdated (like 2,3 times per day) , have create new data first, , delete old stuff (so @ point in time data available).
the problem neo4j doesnt reuse space deleted nodes/relationships. im using match (n) condition deteach delete n
i can see nodes beeing deleted (their number constant ~30m) size growing (after 12 updates, size 12x bigger should be).
i found previous posts neo4j database size / shrinking store-utils find better solution.
i found old question (from version 1.x) neostore.* file size after deleting millions node doesnt work in answer @ least in case.
there advices delete database files , create new one, require service stopped shouldn't happen.
i found information in order reuse space need restart db first, tried , didn't work.
is there way free/reuse space deleted nodes/relationships ? maybe miss configuration, or available in enterprise version?
edit:
finally had time test , run scenario when data refreshed few times, restarting server few times aswell. test made on neo4j 3.0.0 on windows 10 environment. results are(not yet allowed embeed images):
each column presents storage size further updates, blue line means neo4j server restart, , last column (separated brown line) stands size after running store-utils.
as desribed earlier, size growing pretty fast , against documentation, restart doesn't help. store-utils helps (they clean files except neostore.nodestore.db) hard , messy solution integrate store-utils production solution.
can give me hint why storage growing ?
starting neo4j 3.0.4, enterprise edition support reuse node ids , relationship ids without need restart instance. works both single instance , ha deployments.
to enable feature need set following in neo4j.conf
:
dbms.ids.reuse.types.override=node,relationship
Comments
Post a Comment