I would also recommend using batch-write for this. It's *much* faster. Regarding your error: Maybe you open too many sockets which don't get closed and your process runs out of file descriptors.
On Tue, Oct 12, 2010 at 7:13 AM, David Nolen <dnolen.li...@gmail.com> wrote: > On Tue, Oct 12, 2010 at 12:45 AM, Mark Engelberg <mark.engelb...@gmail.com> > wrote: >> >> I'm playing around with couchdb. I'm using the version that lein gets >> with the following command: >> [clojure-couchdb "0.4.4"] >> which as far as I can tell is the most recently maintained version. >> >> When I do a bunch of rapid calls to document-create in a tight loop, >> after about 3000 or so documents have been created, I get the error >> listed below. Any idea how to resolve this? Is there a different >> version of the clojure-couchdb library that doesn't exhibit this >> problem? >> >> Thanks, >> >> Mark >> >> Address already in use: connect >> [Thrown class java.net.BindException] > > You might want to look at the end of this thread: > http://groups.google.com/group/aleph-lib/browse_thread/thread/d0feb5d784f05682/b81fd22a35bed316 > Also in my experiencing batching writes with CouchDB is a big performance > gain. > David > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with your > first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en -- Moritz Ulrich Programmer, Student, Almost normal Guy http://www.google.com/profiles/ulrich.moritz BB5F086F-C798-41D5-B742-494C1E9677E8 -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en