title: clojure.java.jdbc lazy query
body: <p>I have a query that is basically a <code>select *</code>. In development this table is only 30000 rows, but in production it will much bigger. So I want to consume this query lazily. Why is the query below not lazy?
  I am using Postgres 9.5.4.1.</p>
  
  <pre><code>(do
    (def pg-uri {:connection-uri "jdbc:postgresql://localhost/..."})
    (def row (atom 0))
    (take 10 (clojure.java.jdbc/query 
            pg-uri
            ["select * from mytable"]
            {:fetch-size 10
             :auto-commit false
             :row-fn (fn [r] (swap! row inc))}))
    @row) ;;=&gt; 300000
  </code></pre>