Emmanuel Sunday
Emmanuel Sunday

Reputation: 65

Neo4j on Graphenedb How can I improve Cypher SPEED and what does Normailzing mean on Graphenedb

Here is my Cypher Query

MERGE (u:University { name: $university, country: $country }) MERGE (u)<-[:DEPARTMENT_IN]-(d:Department { name: $department }) MERGE (d)<-[:LEVEL_IN]-(l:Level { name: $level }) MERGE (l)<-[:STUDENT_OF]-(user:User { firstName: $firstName, lastName: $lastName, password: $password, email: $email, username dob: $dob, id: $id }) RETURN user, u, d, l

This works, but not very fast as what I anticipated. It takes up to 4.5 seconds to complete. Am I doing something wrong in the query, is there a faster way?

Also for the query

MATCH (u:University {name: $university})<-[DEPARTMENT_IN]-(d:Department) RETURN d

On Graphenedb message saying "This query has been normalized" I don't really understand. Thanks for your answers 😊 Profile of the Query

Upvotes: 0

Views: 26

Answers (0)

Related Questions