Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
04-07-2020 01:05 PM
Hi, Can someone help me in profiling the query below. I want to decrease the time it takes to execute.
Query: MATCH path=((a:Account {id:73})-[*3..5]-(a))
RETURN max(REDUCE(s = 0, r IN relationships(path) | s + r.baseAmount)) AS amt_max
04-07-2020 02:00 PM
Can you provide some sample data to help with this?
Also it looks like you're trying to find a path where (a) links back to itself, is that right?
04-07-2020 02:08 PM
A PROFILE plan would help (with all elements expanded)
04-08-2020 07:20 AM
(Account)-[transfers]->(Account) is the underlying schema.
I am trying to find the cyclic paths where the accounts involve in, along with the total amount which is being involved in the cycle. baseAmount is the property of the [transfers] relation.
All the sessions of the conference are now available online