Pregunta

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.

¿Fue útil?

Solución

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

Otros consejos

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?

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top