Is it possible to do some batch updates with  taoensso.carmine ?

So far I'm doing

(defmacro wcar* [& body] `(car/wcar server1-conn ~@body))

(defn test-data [s n]
 (map (fn [i] (reverse (conj '(taoensso.carmine/set) (str i "|color") 
"blue"))) (range s n)))

(def data (map (fn[i] (conj (test-data i (+ i 2000)) 
'server.nosql.redis/server1-conn 'taoensso.carmine/wcar))
 (range 0 50000 2000)))

(defn do-alot []
 (doseq [request data]
 (eval request)))


But this looks so ugly that I suppose that there is a better solution.


-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to