title: How to insert Bulk data into Neo4j using Python
body: <p>I want to insert some data into <code>Neo4j</code> using <code>py2neo</code> . <a href="http://snap.stanford.edu/data/egonets-Facebook.html" rel="nofollow">Link</a> to data file.
  I am new to <code>Neo4j</code>. Can someone tell me how to insert bulk data into <code>Neo4j</code>.Actually i want to do performance testing of <code>Neo4j</code>.....</p>
  
  <p>I have tried this but this is just for small data set ...</p>
  
  <pre><code>from pprint import pprint
  from py2neo import neo4j,node, rel
  graph_db = neo4j.GraphDatabaseService()
  
  def insert_data():
      die_hard = graph_db.create(
          node(name="Bruce Willis"),
          node(name="John McClane"),
          node(name="Alan Rickman"),
          node(name="Hans Gruber"),
          node(name="Nakatomi Plaza"),
          rel(0, "PLAYS", 1),
          rel(2, "PLAYS", 3),
          rel(1, "VISITS", 4),
          rel(3, "STEALS_FROM", 4),
          rel(1, "KILLS", 3),)
      pprint(die_hard)
  
  insert_data()
  </code></pre>
  
  <p>error : </p>
  
  <pre><code>src/test/java/org/neo4j/batchimport/TestDataGenerator.java:3: error: package org.junit does not exist
  import org.junit.Ignore;
                  ^
  src/test/java/org/neo4j/batchimport/TestDataGenerator.java:14: error: cannot find symbol
  @Ignore
   ^
    symbol: class Ignore
  2 errors
  </code></pre>