Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
05-26-2020 12:58 PM
Hi Everyone,
I am running below query with is dealing with large volume of data and it enters in a forever loop.
match (t1)-[:IN|OUT]-(a1:add) where a1.add= 'abc' return collect(DISTINCT t1) AS tx
is there any way to make this working ??
I am having index on add property and total number of nodes in db around 700000000 and total relationships are around 2400000000
05-26-2020 02:25 PM
05-26-2020 09:39 PM
It is 64 gb machine for neo4j
05-26-2020 10:26 PM
05-27-2020 01:53 AM
05-27-2020 03:24 AM
Oh yes it is not apoc.periodic.iterarte() rather than apoc.periodic.commint().
05-27-2020 04:49 AM
@intouch.vivek
I tried with commit and got below screen:
could you please suggest me, why getting this ?
new query is:
CALL apoc.periodic.commit("match (t1)-[:IN]-(a1:add) where a1.add= 'abc' WITH collect(DISTINCT t1) AS tx LIMIT $limit return tx",
{limit:1000}
)
05-28-2020 12:03 AM
Yes i tried with One relationship at a time still same result.
Note: if i will run both relationships together then distinct count would be 44000 nodes
05-27-2020 11:39 PM
You might try to first run this in two segments - first get a match for just a1; then use WITH a1, and include the rest of the query. My guess is the issue is with accessing the attribute although you may need to run two queries to address IN and OUT separately. First see if you can run a simple match on (a1 {add: 'abc'}) and get results back reasonably..
You also may want to reconsider using collect(). Why is that needed? Vs. just DISTINCT t1?
HTH
05-28-2020 12:06 AM
I worked on your inputs as well but same result .
and i am using collect because i need a list of nodes that i need to pass in apoc.map.parallel2
All the sessions of the conference are now available online