Neo4j with Scala: Migrate Data from Other Databases to Neo4j [Community Post]


Learn more about using Scala with Neo4j for data migration from other databases to Neo4j

[As community content, this post reflects the views and opinions of the particular author and does not necessarily reflect the official stance of Neo4j. This was originally posted on the Knoldus blog and was used with permission.]

Editor’s Note: For more information on the Scala driver for Neo4j – AnormCypher – check out our developer page here.

Let’s continue our journey with Neo4j and Scala. Earlier in this series, we introduced Neo4j with Scala as well as using APOC library with Scala.

In this post, we’re going to discuss about how we can migrate data from the other databases like MySQL, PostgreSQL, Oracle and Cassandra.

But for those who have caught the train late 😉 , this is what we’ve covered so far:
  1. Getting Started Neo4j with Scala: An Introduction
  2. Neo4j with Scala: Defining User-Defined Procedures and APOC
We all use many different databases for storing the data, but when we have a large amount of data and tables at a time, it can become too difficult to make queries and execute them on the database. We have to be extra cautious to perform these tasks, and we can easily get bored just looking at the same screen without any fun 😉 .

Fortunately, there’s solution for this: We can use Neo4j, where we’ll find more fun in doing the work and it’s not all that difficult – just like we have discussed in the first blog post of this series.

Before diving in, I want to clear up one thing: When we perform a data migration, we have to keep the Neo4j APOC Kit in the $Neo4j_Home/plugins folder. Now we can discuss each of the databases I’ve mentioned above and how to connect and transfer data from that database to Neo4j.

Let’s start with PostgreSQL….

Read the rest of this blog post on Scala for Neo4j by Anurag Srivastava on the Knoldus blog.


Want to learn more about graph databases and Neo4j? Click below to register for our online training class, Introduction to Graph Databases and master the world of graph technology.