Neo4J database size / shrinking

倖福魔咒の 提交于 2019-12-21 17:19:42

问题


We have a neo4j database with ~10Mil nodes and ~300 million relationships. the database has grown to about 80 Gig. There are daily jobs that kill off old data and add new data, so the approx number of nodes and relationships stays fairly constant. However, the physical file size of the db files keeps on growing (for example, the relationshipstore file is at 50Gig currently).

I have found the following link that might explain why the size might not go down when deleting (space is left reserved and is taken up by new relationships and nodes), however it still does not explain why our database keeps growing! neostore.* file size after deleting millions node

Questions:

a) What can we check to find out why our db is still growing?

b) Most relational db's I've worked with always had "shrink files" or "optimize free space" function. Does something like this exist for Neo4j? (google search was unsuccessful!).

Thank you,

-A

P.S. We're running Neo4j 2.1.5 Community Edition on Ubuntu 14


回答1:


There is a tool called store-utils which will allow you to effectively compact the store. You'd have to shut down the store before running that though.

As always take a back up before you try out any tools that do anything with the store.



来源:https://stackoverflow.com/questions/26894981/neo4j-database-size-shrinking

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!