10.2. Import

This section describes how to perform batch imports of data into Neo4j.

You can do batch imports of large amounts of data into a Neo4j database from CSV files, using the import command of neo4j-admin. This tool can only be used to load data into a previously unused database. If you wish to import small to medium-sized CSV files into an existing database, use LOAD CSV (see Developer Manual → LOAD CSV).

These are some things you will need to keep in mind when creating your input files:

Indexes and constraints

Indexes and constraints are not created during the import. Instead, you will need to add these afterwards (see Developer Manual → Schema).

This chapter explains how to format the input data and use the import tool. If you wish to see in-depth examples of using the import tool, refer to the Import tutorial.

The following sections describe how to use the import tool: