This section describes in details the options available when using the Neo4j import tool to import data from CSV files.
STRING: arbitrary strings for identifying nodes,
INTEGER: arbitrary integer values for identifying nodes,
ACTUAL: (advanced) actual node ids. Default:
\. For example,
\44is equivalent to
\. For example,
\59is equivalent to
""would be interpreted as a literal
". You cannot escape using
20Gfor 20 gigabyte. It can also be specified as a percentage of the available memory, e.g.
|Using regular expressions for specifying input files|
To simplify command line when there are many data source files, the file names can be specified using regular expressions. For each file name containing regular expressions, the matching files will be included. The matching is aware of numbers inside the file names and will sort them accordingly, without the need for padding with zeros.
Consider the file names:
Specifying those to the import tool using, for example, the regular expression
|Heap size for the import|
You want to set the heap size to a relevant value for the import.
This is done by defining the
If you run large imports with "messy" data, the import log file can grow very large, which may cause problems.
You control the location of the log file with the --report-file option.
You can even get rid of the output altogether for UNIX-like systems, by directing the report file to
If you need to debug the import it might be useful to collect the stack trace.
This is done by setting the environment variable
NEO4J_DEBUG=true and rerun the import.