neo4j/cypher: Getting the hang of query parameters

About Mark Needham

without comments For as long as I’ve been using neo4j‘s cypher query language Michael has been telling me to use parameters in my queries but the performance of the queries was always acceptable so I didn’t feel the need. However, recently I was playing around with a data set and I created ~500 nodes using code similar to this:
 
 
 
 
 
 
 

require 'open-uri'open("data/people.cyp", 'w') { |f|  (1..500).each do |value|    f.puts("CREATE (p:Person{name: \"#{value}\"})")  end}

Source : http://www.javacodegeeks.com/2013/08/neo4jcypher-getting-the-hang-of-query-parameters.html

Back to Top