Add a "Turbo" button: (defmacro with-turbo [turbo-on & body] `(let [~'map ~(if turbo-on `clojure.core/pmap `clojure.core/map)] ~@body)) (via @rplevy) -- And witht this, you can turn all your calls to map into calls to pmap, thus parallelizing your code, with only wrapping it with (with-turbo <your code here>).
Its (sic) nice when SQL can be lazy (here, via @kyleburton) -- clojure.contrib.sql provides result sets as lazy seqs that will pull the results from the DB server as needed, if the JDBC driver allows for it. It turns out that for PostgresDB this doesn't work and all the data is fetched at once from the DB server. This article describes a solution to this problem, which involves chunking the query to the database (and not the results) while maintaining the lazy seq abstraction.