Reasons for not migrating using a single query

Evolution is a constant in the software industry. Most of the times migrations are done, the database and code changes are simultaneous and all of this is deployed in a big bang release. An example of a big bang release in our case would be to make the constraint, make data changes, and delete the relationships in one go. This change will need the code to be deployed along with the changes to the database so that the applications keep running. There are multiple downsides to this approach:

  • If something goes wrong at the database end, there might be an outage. A rollback of code will be required along with restoring the database to an earlier state.
  • This is more time consuming since it will require a ...

Get Neo4j Graph Data Modeling now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.