Re: (:multiplexing clojure.contrib.sql = nil?)

2010-11-15 Thread Shantanu Kumar
The idiomatic JDBC solution to this problem is a DataSource: http://download.oracle.com/javase/6/docs/api/javax/sql/DataSource.html http://bitbucket.org/kumarshantanu/clj-dbcp/src A connection-pooling data source does exactly that - it recycles the connection for many statements. The close() metho

Re: (:multiplexing clojure.contrib.sql = nil?)

2010-11-15 Thread Daniel Bell
I may be using the term wrong; while concurrency isn't necessary, I'm really just looking to minimize the # of times I'm opening/closing connections, but also looking to minimize unnecessary open connections. I suspect what I'm really looking for is a macro to detect every instance of "(sql/with-c

Re: (:multiplexing clojure.contrib.sql = nil?)

2010-11-13 Thread Shantanu Kumar
Not sure what you meant by multiplexing? Did you mean "concurrent execution" of SQL statements on the same connection? Regards, Shantanu On Nov 14, 4:00 am, Daniel Bell wrote: > I'm just getting my feet wet w/clojure's sql library, and I got to > wondering---is multiplexing implemented in a libr

(:multiplexing clojure.contrib.sql = nil?)

2010-11-13 Thread Daniel Bell
I'm just getting my feet wet w/clojure's sql library, and I got to wondering---is multiplexing implemented in a library somewhere? Or is it already part of contrib.sql but executed behind the scenes? Thanks, ---Dan -- You received this message because you are subscribed to the Google Groups "C