Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
11-21-2022 08:51 AM
Hi guys!
I am using node.js with neo4j-driver 5.1.
My query code block takes too long to execute, like 3 to 4 seconds. However, the actual query takes 5 ms to complete. browser or Neo4j desktop application .
var session = neo4jConn.session({database:"neo4j"});
const strtTime = new Date();
var result = await session.executeRead(tx =>
tx.run(`
MATCH (loginUser:User {user_id: $userId})-[saved:saved]->(num1:Number)
RETURN num1
`,
{
userId:parseInt(userId),
}
)
);
await session.close();
console.log(`${new Date()-strtTime} ms`);
All the sessions of the conference are now available online