This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-06-09
Channels
- # aleph (4)
- # arachne (3)
- # beginners (41)
- # boot (300)
- # cider (17)
- # cljs-dev (37)
- # cljsjs (4)
- # cljsrn (5)
- # clojure (249)
- # clojure-boston (3)
- # clojure-czech (4)
- # clojure-dev (14)
- # clojure-greece (183)
- # clojure-nl (2)
- # clojure-russia (11)
- # clojure-spec (135)
- # clojure-uk (37)
- # clojurescript (56)
- # community-development (8)
- # cursive (22)
- # data-science (4)
- # datomic (150)
- # devcards (6)
- # emacs (5)
- # euroclojure (8)
- # funcool (18)
- # hoplon (29)
- # immutant (1)
- # jobs (1)
- # lambdaisland (3)
- # lein-figwheel (7)
- # leiningen (18)
- # mount (1)
- # om (81)
- # onyx (95)
- # planck (50)
- # proton (6)
- # re-frame (62)
- # reagent (2)
- # ring (1)
- # robots (1)
- # spacemacs (2)
- # specter (88)
- # test-check (32)
- # untangled (23)
- # yada (1)
is the untangled server "thread per request" model? e.g. if I make an elastic search blocking query for every single remote data fetch, will this scale up? or quickly consume a thread pool
Eventually that will likely be pluggable. Any ring-based server will work. At the moment, httpkit seemed a reasonable choice for a default.
we ran into a bug today where a migration was being dropped because it had the same timestamp as an existing migration. perhaps its worth throwing an exception or warning if that is the case? https://github.com/untangled-web/untangled-datomic/blob/master/src/untangled/datomic/schema.clj#L202
(defuii SearchTab '[:which-tab
:content
[:search-results _]]
Object
(render [T]
(div
(form-control-text {:type "text"
:placeholder "enter your search"
:onKeyEnter #(load-data T '[:search-results])
#_ #(transact! T `[(app/search {:query ~%})])})
(code (prn-str (props T))))))
oh sorry, there's some macro magic there, the query is
[:which-tab
:content
[:search-results _]]
so essentially i'm just trying to read root key :search-results while writing a query expression that isn't in Root component
{:which-tab :search, :content "Main", :search-results {:ui/fetch-state nil, :the ["result0"]}}
next, i tried changing the query to
(defuii SearchTab '[:which-tab
:content
[:search-results :the]]
which resulted in the props for SearchTab being `{:which-tab :search, :content "Main", [:search-results :the] [nil]}
(defuii SearchTab '[:which-tab
:content
{[:search-results :global] [:items]}]
Object
(render [T]
(div
(form-control-text {:type "text"
:placeholder "enter your search"
:onKeyEnter #(load-data T '[:search-results])
#_ #(transact! T `[(app/search {:query ~%})])})
(code (prn-str (props T))))))
and on the backend API I have (defmethod api-read :search-results [env key params]
{:value {:global {:items ["result0"]}}})