This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-07-25
Channels
- # admin-announcements (2)
- # beginners (36)
- # boot (37)
- # cider (65)
- # cljsrn (92)
- # clojars (3)
- # clojure (225)
- # clojure-austin (5)
- # clojure-belgium (2)
- # clojure-brasil (3)
- # clojure-china (1)
- # clojure-greece (2)
- # clojure-mexico (3)
- # clojure-news (2)
- # clojure-quebec (1)
- # clojure-russia (14)
- # clojure-spec (24)
- # clojure-uk (53)
- # clojurescript (34)
- # cursive (14)
- # datascript (9)
- # datomic (4)
- # defnpodcast (8)
- # devcards (30)
- # dirac (7)
- # editors (7)
- # emacs (1)
- # figwheel (1)
- # hoplon (85)
- # immutant (2)
- # incanter (1)
- # luminus (5)
- # off-topic (41)
- # om (18)
- # onyx (11)
- # perun (2)
- # re-frame (11)
- # reagent (9)
- # ring (3)
- # spacemacs (2)
- # spirituality-ethics (1)
- # test-check (19)
- # testing (12)
- # untangled (14)
- # yada (9)
do you have to give a vector of vector for the value list? normally the json body is a map containing a vector of maps, which means we need to convert that map to a vector with the correct order
@rui.yang Author of HugSQL here. Inserts with the tuple parameter type has its limits--especially if you're inserting a lot of data. Depending on your use case, I'd suggest: 1) looping through your data in a transaction and calling your insert function multiple times, 2) the underlying clojure.java.jdbc multi-insert might be just what you need, or 3) use HugSQL's Clojure Expressions to build a "generic insert" (See the clj-expr-generic-update
example: http://www.hugsql.org/#using-expressions)
@rui.yang That clojure.java.jdbc
function should be insert-multi!
@curtis.summers thanks for the tips