This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-10-24
Channels
- # aws (7)
- # aws-lambda (3)
- # beginners (65)
- # boot (43)
- # cider (7)
- # cljs-dev (12)
- # cljsrn (15)
- # clojure (284)
- # clojure-austin (32)
- # clojure-brasil (4)
- # clojure-dusseldorf (4)
- # clojure-germany (1)
- # clojure-italy (40)
- # clojure-spec (21)
- # clojure-uk (69)
- # clojurescript (97)
- # core-async (11)
- # cursive (19)
- # data-science (1)
- # datascript (6)
- # datomic (30)
- # dirac (2)
- # emacs (4)
- # events (2)
- # fulcro (76)
- # graphql (38)
- # juxt (1)
- # lein-figwheel (1)
- # leiningen (6)
- # luminus (4)
- # lumo (13)
- # mount (4)
- # off-topic (24)
- # om (28)
- # onyx (32)
- # other-languages (1)
- # parinfer (40)
- # pedestal (1)
- # portkey (47)
- # re-frame (21)
- # reagent (4)
- # ring (4)
- # ring-swagger (3)
- # rum (1)
- # shadow-cljs (115)
- # spacemacs (5)
- # sql (14)
- # unrepl (1)
- # yada (3)
@borkdude Not yet, sorry. It's on my list.
There are examples in the test suite https://wsnetworks.atlassian.net/browse/WS-9896
ok, because I think it replaces this right? https://stackoverflow.com/a/39775018/6264
And in the new performance tests https://github.com/clojure/java.jdbc/blob/master/src/perf/clojure/clojure/java/perf_jdbc.clj#L138
Yeah, several things have changed about that SO example: :fetch-size
is passed through from query
, you can set :auto-commit? false
on anything that creates a connection (which could be query
or with-db-connection
etc).
And you can now reduce
a reducible-query
as a better way to deal with large result sets. Or any result sets 🙂
OK, I’d like to update my answer over there as soon as the docs come available. Thanks!
The problem with streaming result sets is that the settings you need are specific to each vendor's DB.
Well, some DBs need :auto-commit? false
at the point that creates the connection, some don't. Some need a non-zero :fetch-size
(on query
or reducible-query
or prepare-statement
).
The point is to expose the various knobs that any DB needs -- but how you set those knobs depends on which DB you are using.
This was where I added :auto-commit?
https://dev.clojure.org/jira/browse/JDBC-153 (and the ability to set a connection to readonly -- both options got ?
for consistency)
Hugsql 0.4.8 is out! https://github.com/layerware/hugsql/releases/tag/0.4.8