Why does purging the old data from Neo4j v4.4 increasing the schema folder size ?Mar 18, 2024Knowledge
Article DetailsDetailsHelp DetailsIn some cases, we observed the storage size increase when we delete data. The explanation for one of the scenerios as follows, Question : Despite deleting the same amount of data from Neo4j as we add through the ingestion process on the same day, why do we observe an increase in the size of the schema directory (indexes) ? Answer: The indexes backed by Neo4j’s native indexes have an internal generation mechanism, such that making a change to a page can create a new generation (copy) of it. However, there cannot be more than two generations of any given page. This means that removing data from a tree can increase the size. And as with other store files these files cannot shrink either. There are a few factors that can contribute to its growth, like changes to the checkpoint etc. However we should not see it grow more than 2X the size of the index store; ideally, it should be less than that. Note - Schema folder is available under /data/databases/<databaseName>/schema/ Below KB articles can also be of interest- How delete works in Neo4jBest Practices for large deletes InformationTitleWhy does purging the old data from Neo4j v4.4 increasing the schema folder size ?Article Created Date3/15/2024, 10:54 PMURL Name22720224481299-Why-does-purging-the-old-data-from-Neo4j-v4-4-increasing-the-schema-folder-sizeLast Modified Date3/25/2024, 3:01 AM