This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-11-15
Channels
- # aleph (24)
- # announcements (8)
- # babashka (27)
- # beginners (55)
- # biff (4)
- # calva (32)
- # cider (5)
- # clj-kondo (11)
- # clojure (59)
- # clojure-android (3)
- # clojure-australia (1)
- # clojure-belgium (6)
- # clojure-dev (21)
- # clojure-europe (26)
- # clojure-nl (1)
- # clojure-norway (17)
- # clojurescript (19)
- # css (1)
- # data-science (10)
- # datahike (17)
- # events (3)
- # figwheel-main (4)
- # honeysql (1)
- # hugsql (5)
- # hyperfiddle (1)
- # jobs (1)
- # leiningen (3)
- # lsp (6)
- # malli (5)
- # meander (4)
- # nbb (6)
- # off-topic (87)
- # pathom (19)
- # portal (2)
- # re-frame (4)
- # reitit (6)
- # releases (1)
- # remote-jobs (3)
- # shadow-cljs (29)
- # sql (8)
- # tools-deps (6)
- # xtdb (7)
is there any way to mute the result of insertion when using next.jdbc? I'm trying to conduct a benchmark test using Clojure + next.jdbc, and need to insert hundreds of thousands of rows. It prints the result everytime when insertion is made; and it's a nuisance for the purpose of experiment.
next.jdbc
should not be printing anything.
@U01TFN2113P The only printing at all anywhere in the next.jdbc
codebase is in its tests -- the library itself does not printing. Any printout you're seeing must be coming from your own code. Can show the code you are benchmarking?
[#:next.jdbc{:update-count 1}]
I get this output after executing an insert. My mistake - it is not a print. But a result of function call.. which is inevitable I guess!Yeah, functions return results 🙂
If you need to bulk insert, you'll want to use execute-batch!
for the insert and you'll need to tune various settings -- which are database-specific and several DBs are mentioned in the docs.
In particular, some DBs require connection parameters in order to force batch execution of statements/inserts.