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`);
- That the measurements has done with 18K row of records.