title: neo4j - how to match only first n relations
body: <p>is there a default way how to match only first n relationships except that filtering on <code>LIMIT n</code> later?</p>
  
  <p>i have this query:</p>
  
  <pre><code>START n=node({id})
  MATCH n--u--n2
  RETURN u, count(*) as cnt order by cnt desc limit 10;
  </code></pre>
  
  <p>but assuming the number of <code>n--u</code> relationships is very high, i want to relax this query and took for example first 100 random relationships and than continue with <code>u--n2...</code></p>
  
  <p>this is for a collaborative filtering task, and assuming the users are more-less similar i dont want to match all users <code>u</code> but a random subset. this approach should be faster in performance - now i got ~500ms query time but would like to drop it under 50ms. </p>
  
  <p>i know i could break the above query into 2 separate ones, but still in the first query it goes through all users and than later it limits the output. i want to limit the max rels during <code>match</code> phase. </p>