I have been trying to create a relationship between my data that I have imported using the csv load headers. The below code all works fine:
:auto USING PERIODIC COMMIT
LOAD CSV WITH HEADERS FROM "file:/Volumes/K_USB_YR4/Uni_Final_Year/Advanced_Databases/Twitter_Dataset/tweets.csv" AS csvLine
CREATE (:Tweet {tweetID: csvLine.tweetID, username: csvLine.username, text: csvLine.text});
:auto USING PERIODIC COMMIT
LOAD CSV WITH HEADERS FROM "file:///C:/Users/BCH02300/Desktop/users.csv" AS csvLine
CREATE (:User {username: csvLine.username, source: csvLine.source});
:auto USING PERIODIC COMMIT
LOAD CSV WITH HEADERS FROM "file:///C:/Users/BCH02300/Desktop/hashtags.csv" AS csvLine
CREATE (:Hashtag {hashtag: csvLine.tag});
CREATE INDEX ON :User(username);
CREATE INDEX ON :Tweet(tweetID);
CREATE INDEX ON :Hashtag(hashtag);
However the moment I try to create the relationships, the query does not ever finish loading:
:auto USING PERIODIC COMMIT
LOAD CSV WITH HEADERS FROM "file:///C:/Users/BCH02300/Desktop/tweets.csv" AS csvLine
MATCH (tweet:Tweet {tweetID: csvLine.tweetID})
MATCH (user:User {username: csvLine.username})
MERGE (user)-[:POSTS]->(tweet);
:auto USING PERIODIC COMMIT
LOAD CSV WITH HEADERS FROM "file:///C:/Users/BCH02300/Desktop/tweets_and_hashtags.csv" AS csvLine
MATCH (tweet:Tweet {tweetID: csvLine.tweetID})
MATCH (hashtag:Hashtag {hashtag: csvLine.tag})
MERGE (tweet)-[:TAGS]->(hashtag);
The query works on my university network fine when I go to create the relationships, however not for my PC. I am running: Neo4j Browser version: 4.0.3 Neo4j Server version: 3.5.14 (enterprise)
Please can someone help me?