Chapter 5. Refactoring the Data Model

We explored how to model cities and flights in a graph database, and are now able to run queries that return flights and routes for a journey. We also added the capability to book flights to our data model. In this chapter, we will explore how to change the data model to fit new requirements. As we go along, we will explore the following concepts:

  • Modifying data model to accommodate business requirements
  • Migrating the data from the old model to the new one

Capturing information about hotels at airports

While travelling, if a layover is more than six hours, travelers generally like to rest. Since the travelers might not be possessing a visa for the country that they are transiting through, most dormitories or hotels ...

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.