This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-04-25
Channels
- # architecture (4)
- # bangalore-clj (3)
- # beginners (11)
- # chestnut (1)
- # cider (24)
- # cljs-dev (14)
- # clojure (97)
- # clojure-finland (1)
- # clojure-gamedev (19)
- # clojure-italy (11)
- # clojure-nl (31)
- # clojure-norway (1)
- # clojure-uk (52)
- # clojurescript (71)
- # core-async (4)
- # cursive (60)
- # datascript (8)
- # datomic (115)
- # emacs (29)
- # figwheel (11)
- # fulcro (3)
- # garden (1)
- # hoplon (1)
- # lein-figwheel (1)
- # leiningen (7)
- # luminus (13)
- # mount (1)
- # off-topic (51)
- # onyx (31)
- # pedestal (2)
- # portkey (1)
- # re-frame (22)
- # reagent (22)
- # reitit (6)
- # remote-jobs (1)
- # schema (1)
- # shadow-cljs (73)
- # specter (2)
- # sql (1)
- # unrepl (3)
- # vim (11)
- # yada (4)
Good morning!
Working on upgading a big monolitic java cms, but from home, so I probably have time to setup the micro clojure cms so my girlfriend can start creating content for the cattery.
I’m debugging sql/clojure performance issues. ⌨️
I think it’s nice, I played a little with it, but it’s a much easier setup then cucumber with selenium, and using macros you could easily create something to write ‘readable’ tests if you want to
@joost-diepenmaat what clj sql lib do you use? We write pure sql queries using hugsql
We also have a reducible thing for processing rows using transducers, for giant ass results.
I only used alaisi/postgres.async following a graphql example, left me stuck at about 500 ‘operations’ a second, might rewrite to hugsql to see if it increases performance.
oksql addresses this and some other issues: https://github.com/swlkr/oksql#why
We’re using honeysql mostly. It’s the easiest way to generate dynamic queries.
Anyone experience using just https://github.com/clojure/java.jdbc ?
@gklijs I’ve done that for a while. Works great, but it’s nice to edit sql in a .sql file and not having it as an inline string.
we haven’t run into the validation issue that the README mentions with hugsql: just call the generated function, no problem
also, don't use postgresql.async, it's a farce -- they just all do thread-per-connection in the background + a lot of multiplexing, i haven't found any big advantage to that myself
well, if I have to choose between macros or code generation (as in spitting out files), I choose macros 🙂 there’s only one macro in hugsql you use to go from .sql to defining query functions. no magic, that’s fine with me for now.
@lmergen I just copied bits and pieces from the lacinia manual, only a bit later the writer admitted it was just added to the tutorial as example, and that he himself did not had much experience using clojure with sql (they use something else at Walmart).
@lmergen almost 50 stars (first commit in oct 2017)… I thought it was anounced on Reddit - but searching fails me…owell, reddit-search… 😉
@gklijs right, well i would definitely just use clojure.java.jdbc, it's pretty much compatible with everything else out there