This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-10-12
Channels
- # announcements (13)
- # aws (18)
- # babashka (60)
- # babashka-sci-dev (83)
- # beginners (32)
- # biff (18)
- # calva (22)
- # cider (8)
- # clj-on-windows (101)
- # clojure (59)
- # clojure-bay-area (2)
- # clojure-europe (36)
- # clojure-india (4)
- # clojure-nl (3)
- # clojure-norway (5)
- # clojure-spec (4)
- # clojure-uk (1)
- # clojurescript (5)
- # conjure (1)
- # core-async (10)
- # cursive (7)
- # data-science (5)
- # datahike (10)
- # datalog (11)
- # datomic (3)
- # docker (3)
- # figwheel-main (2)
- # gratitude (3)
- # improve-getting-started (1)
- # introduce-yourself (5)
- # jobs (3)
- # joyride (12)
- # leiningen (1)
- # lsp (67)
- # malli (27)
- # off-topic (36)
- # random (1)
- # rdf (1)
- # re-frame (17)
- # reagent (21)
- # reitit (4)
- # releases (4)
- # remote-jobs (2)
- # ring (2)
- # sci (35)
- # shadow-cljs (28)
- # sql (3)
- # squint (9)
- # tools-deps (11)
Hello! Just to check - does insert-multi
keep the order of results of insertion (the same as it's argument vector of insertions order)? May I rely on it? I hope that yes, but want to check 🙂
If it is running in sequential mode -- doing a series of single inserts -- then, yes, definitely. If it is running in batch mode -- doing groups of inserts -- then it will do whatever JDBC does for that case which should also be in order as far as I know.
✅ 1
Thanks. Keeping in mind, that
When inserting rows as a sequence of lists of column values, the result is
a sequence of the counts of rows affected (a sequence of 1's), if available.
Yes, that is singularly unhelpful.
then the only case of meaningful results is sequential mode - cause only in this case we can see any valuable results but not (1 1 1 ....)
So in batch mode we can also think, that order of results is keeped, it can't be reordered 😁
But thanks for clarification about seq mode!