graph - Neo4J : Java Heap Space Error : 100 k nodes -


i have neo4j graph little more 100,000 nodes. when use following cypher query on rest, java heap error . query producing 2-itemset set of purchases .

match (a)<-[:bought]-(b)-[:bought]->(c) return a.id,c.id 

the cross product of 2 types of nodes type 1 (a,c) , type 2 (b) of order 80k*20k

is there more optimized query same purpose ? still newbie cypher. (i have 2 indexes on type1 , type2 nodes respectively can use) or should go increasing java heap size .

i using py2neo rest queries.

thanks.

as said cross product 80k * 20k pull of them across wire? not want. such query bound start user or start product.

you might try run query in neo4j-shell:

match (a:type1)<-[:bought]-(b)-[:bought]->(c) return count(*) 

if have label on nodes, can use label type1? drive it. see how many paths looking at. 80k times 20k 1.6 billion paths.

and i'm not sure if py2neo of version (which one) using using streaming that? try use transactional endpoint py2neo (i.e. cyphersession.createtransaction() api).


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -