title: Creating relationships between nodes with same properties
body: <p>I need to create relationships between all the nodes, which have the same property values.</p>
  
  <p>For example I can use the following query:</p>
  
  <pre><code>match (p1:Person), (p2:Person)
  where p1 &lt;&gt; p2 and p1.someproperty = p2.someproperty
  merge(p1)-[r:Relationship]-(p2)
  return p1,r, p2
  </code></pre>
  
  <p>But if I have about 200k of nodes, this script running quite long.</p>
  
  <p>Are there any other faster ways to create such relationships?</p>
  
  <p>Thanks</p>