0
votes

I'm using Neo4j 2.1.2. My query is that I have a 3 csv files with the same structure but with different data, say csv1, csv2, csv3. I loaded the csv1 with node and relationship information on Neo4j. Again I loaded csv2 with the same nodename and relationship name as the 1st csv and I did the same thing for csv2 as well.

So when I fire the query without LOAD CSV command, then from which file will it file fetch the data? Do we need to add LOAD CSV command each time whenever we want to execute the new query. So how would the query know that the data should be fetched from csv2 only?

Thanks, Shree

1
Make sure to read up in the guide here: docs.neo4j.org/chunked/stable/…nawroth
possible duplicate of Match Command in Neo4jStefan Armbruster

1 Answers

2
votes

Neo4j is a graph database.

So after you have run your create / merge statements the data is inside the database and you don't need the CSV files from there.

If there is something specific in every CSV file, that needs to be part of your graph model to make it possible to query it.

Please add your domain / graph model to the question, then we can help you with modeling you graph to make it possible to query parts of your database.