This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-04-09
Channels
- # announcements (26)
- # asami (1)
- # babashka (7)
- # beginners (51)
- # calva (1)
- # cider (18)
- # clj-kondo (6)
- # clj-together (1)
- # cljsrn (4)
- # clojure (78)
- # clojure-australia (3)
- # clojure-europe (25)
- # clojure-losangeles (1)
- # clojure-nl (2)
- # clojure-serbia (4)
- # clojure-spec (23)
- # clojure-uk (19)
- # clojurescript (23)
- # community-development (13)
- # deps-new (1)
- # emacs (24)
- # figwheel-main (5)
- # fulcro (61)
- # graalvm (1)
- # honeysql (11)
- # jobs (1)
- # lsp (7)
- # malli (4)
- # meander (6)
- # membrane (3)
- # off-topic (10)
- # polylith (13)
- # quil (7)
- # re-frame (54)
- # reagent (18)
- # remote-jobs (2)
- # shadow-cljs (81)
- # sql (16)
- # tools-deps (12)
- # xtdb (10)
^ I can confirm that Crux will not be switching to use "record time" and "actual time" in the next release đ
@ordnungswidrig I'd contend that the argument is "laziness" as much as "performance". đ In my case, the system I'm building is known to require bitemporality at some unspecified point in the future. We're dealing with many layers of facts â contemporary researchers who are researching the literary research of monks from 100s of years ago, who themselves wrote documents known as "sub-commentaries" which are themselves commentaries on commentaries, written by monks 1000s of years ago, which are commentaries on the source material originating ~2000 years ago. Looking at that domain, a person can pretty clearly imagine someone asking the question "who knew what, and when?" but it's not a question anyone is likely to ask for years. I swapped Crux in where I used to have Neo4j (yay property graphs) and I use it in almost the exact same way. But the moment a user needs to attach "as-of" data to one of the records, there is a seamless way to do that, even if a corresponding query hasn't emerged yet. With a bitemp database, I know when that day inevitably comes I won't be scrambling to apply valid-time
and tx-time
columns to all my tables because the system has happily (but invisibly) recorded them on my behalf the whole way along. It's nice that I can trust Crux to do the efficient thing, but my system is slow and boring â I'm much happier that it's doing the automatic thing.
Which is in violation of the KISS principle. I would do the same, though.
Hi, I'm pretty new to Crux, forgive me if this has been answered many times already. Seeing as I need to transact a whole document to update a field, what is the common practice to query whole documents in the first place? If I do a query and end up with a bunch of document id's, whats the most common way of turning all of those in to complete documents? I see the pull syntax, but I don't want to specify all of the document keys all of the time, I see the entity
function, but that only allows me to grab one at a time. How would I convert [:id1 :id2 :id3]
to a vector of 3 full documents?
you can use [ďżą*ďżą]
as the pull key to get all the keys, I believe that's the canonical way to do it
is that in the docs, how could I have missed it? I even checked the EQL docs, anyway, thanks a lot I'll give it a try!
@U0L5T5DHP It's at the very bottom of the pull
docs... Maybe we should move it to the top, since it's probably the first desired case for most people. đ
I see it now, so obvious. thanks đ