Remove inactive neo4j shortcuts from database

What is the method to remove inactive, unwanted node shortcuts in Neo4j database (community version 2.2.2)?

I've seen this question in the past, but for some reason it gets a lot of interpretations like clearing browser cache etc.

I mean here the labels actually contained in the database, so the REST command

GET /db/data/labels

      

will print them out. These labels have been removed from any nodes and have no active constraints attached to them.

I know this question has been asked in the past and there is a cumbersome way of solving it, basically dumping and reloading the database. The dump command does not even contain the scattered commit statements and therefore must be edited before being executed. Of course it lasts forever with large databases. There must be a better way, or at least there is a function in the queue of pending requests. Can anyone clarify?

+3


source to share


1 answer


If you remove the last node with a specific label - as you've noticed - the label itself is not removed. As of today, there is no way to remove a shortcut.

However, you can copy via offline datastore like Michael store copy tool for this.



The new store then only knows the tags that are actually in use.

+7


source







All Articles