Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
03-26-2020 12:22 PM
Hi Michael,
I need your help in optimising this cypher query to run pretty much faster preferably in milliseconds.
match (c:client{client_id:$var3}) optional match (d:client) where (c.address =d.address or c.employer =d.employer) and c<>d and d.status ='WRITE_OFF' return count(distinct d)
Thanks so much.
Solved! Go to Solution.
03-27-2020 05:36 AM
Please share the expanded query plan with PROFILE
Make sure to have an index on employer and addres
Perhaps a union would work better than the OR
How many status do you have?
03-27-2020 05:36 AM
Please share the expanded query plan with PROFILE
Make sure to have an index on employer and addres
Perhaps a union would work better than the OR
How many status do you have?
03-27-2020 12:00 PM
Hi Michael,
Thanks for your help. Having indexes on both employer and address solved the problem.
All the sessions of the conference are now available online