문제

Neo4j community 2.0.

How can I undo the last successfully executed neo4j cypher query (made big changes by error).

And generally is there a chance to rollback to a particular state (at least what shown on the interface)?

Though, seems basic action, cannot find it. Thank you in advance.

도움이 되었습니까?

해결책

If you run your cypher statements in a transaction then you can always rollback instead of committing.

  • in the Neo4j-Shell or old Web-UI with BEGIN .... COMMIT around your queries use ROLLBACK
  • with the new transactional http endpoint
  • with programmatic use, e.g. via the JAVA API and transactional boundaries
  • with any of the drivers that support transactions with Neo4j: http://neo4j.org/drivers

다른 팁

Well, when a transaction is committed, there is really no clean way of rolling it back, except to write a new transaction that negates the older one. Isn't that possible?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top