title: StackOverflow when filtering datoms
body: <p>I'm trying to filter through a database, based on the keyword patter match. </p>
  
  <p>To do this, I wrote -></p>
  
  <pre><code>(defn find-users
    [db keyword]
    (if (&gt;=  (count keyword) 3)
        (let [login-pattern (login-pattern keyword)]
          (-&gt;&gt; (d/datoms db :aevt :user/name)
               (filter #(re-matches login-pattern (:v %)))
               (map #(d/entity db (:e %)))))
        []))
  </code></pre>
  
  <p>But, I'm getting a StackOverflow error.</p>
  
  <p>I think it's because of <code>(map #(d/entity db (:e %)))</code></p>
  
  <p>When I plainly do <code>(map :e)</code>, the function works. </p>
  
  <p>I'm a bit confused as to why the Stackoverflow would happen though, the queries I'm performing with map :v are returning only a few entities. </p>
  
  <p>What's happening here?</p>