neo4j-contrib/neo4j-apoc-procedures

automatic substructure dense nodes

Open

#614 opened on Sep 29, 2017

 (0 comments) (0 reactions) (0 assignees)Java (498 forks)github user discovery
enhancementextended-functionalitygood first issuehelp-wanted

Repository metrics

Stars
 (1,869 stars)
PR merge metrics
 (Avg merge 4d 2h) (1 merged PR in 30d)

Description

Add procedures to automatically create and update multi-level trees for multi-million relationship-dense nodes to reduce read and write contention.

Procedures

  • apoc.dense.create.relationship(n1,type,props,n2)
  • apoc.dense.delete.relationship(n1,type,props,n2)

Function/Procedure

  • apoc.dense.relationships(n1,type[,props],level/count)

create a tree with levels that will be filled with (1k,10k relationships per tree-node (and another 100-1k relationships to the next level of tree-nodes) and if it is full, a new level is added, where the next n relationships will be sent to).

million-rel-substructure-1

Contributor guide