Skip to content

Utilities to compact, copy, fix, analyse Neo4j stores

Notifications You must be signed in to change notification settings

graphcommons/store-utils

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tools to copy and compare Neo4j Stores

Uses the GraphDatabaseService to read a store and the batch-inserter API to write the target store keeping the node-ids. Copies the index-files as is. Ignores broken nodes and relationships.

Also useful to skip no longer wanted properties or relationships with a certain type. Good for store compaction as it rewrites the store file reclaiming space that is sitting empty.

Change the Neo4j version in pom.xml before running. (Currently 2.2.4)

Store Copy

Usage:

mvn compile exec:java -Dexec.mainClass="org.neo4j.tool.StoreCopy" \
  -Dexec.args="source-dir target-dir [rel,types,to,ignore] [properties,to,ignore] [labels,to,ignore]"

Store Compare

mvn compile exec:java -Dexec.mainClass="org.neo4j.tool.StoreComparer" \
  -Dexec.args="source-dir target-dir [rel,types,to,ignore] [properties,to,ignore]"

About

Utilities to compact, copy, fix, analyse Neo4j stores

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%