Where is the data you want to migrate?
- CSV files
- JSON files
- CYPHERL files
- Data from an application or a program
- Relational database management system
- In a stream
- Parquet, ORC or IPC/Feather/Arrow file
- NetworkX, PyG or DGL graph
If you can choose the format of the data you want to import, the fastest way to import data into Memgraph is from a CSV file using the LOAD CSV clause.
Schedule a 30 min session with one of our engineers to discuss how Memgraph fits with your architecture. Our engineers are highly experienced in helping companies of all sizes to integrate and get the most out of Memgraph in their projects. Talk to us about data modeling, optimizing queries, defining infrastructure requirements or migrating from your existing graph database. No nonsense or sales pitch, just tech.
To import data from CSV files into Memgraph, use the LOAD CSV clause, which is used as a standard Cypher clause, and can be invoked straight from a running Memgraph instance.
You can also use the
import data from a local JSON file, but the file needs to in a specific format
defined by the procedure.
If your data is in the form of Cypher queries (
within a CYPHERL file it can be imported via Memgraph
Lab or mgconsole.
Export the data into a CSV file and import it into Memgraph using the LOAD CSV clause, like in this example.
Memgraph offers a wide range of client libraries that can be used to connect directly to the platform and import data.
Alternatively, you can use the
module from the MAGE graph
library which allows you to access data from a MySQL database, an SQL server or
an Oracle database.
If you are a Python user you can import Parquet, ORC or IPC/Feather/Arrow file into Memgraph using GQLAlchemy (opens in a new tab).
If you are a Python user you can import NetworkX, PyG or DGL graph into Memgraph using GQLAlchemy (opens in a new tab).