Differentiating Neo4j queries for different data files

偶尔善良 提交于 2019-12-25 02:59:00

问题


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:


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.



来源:https://stackoverflow.com/questions/24751519/differentiating-neo4j-queries-for-different-data-files

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!