This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-02-03
Channels
Hey, cool!
Glad I found this channel
I have a lot of questions RE Datomic
guys, Google Cloud has a Datomic instance?
You could run it by yourself on google cloud, but it will have to be datomic on-prem, that you manage, and not datomic cloud
thanks
so, in other words, if i were to map over transaction IDs and do the query as-of
each of them, 99.9% would be duplicate values for any particular entity X, related entity Y and attr A (because each transaction changes only a single entity typically).
so another solution to this would be to "de-dup" the transaction IDs for a particular entity X and related entity Y before doing the queries and then do the as-of
queries for each transaction ID actually involving a change to entity X or entity Y.
Could you be more concrete about the desired input and output you want? Tx is available to datalog so with some range filtering you can do some things in one query, but I don’t know if it’s worth it without a more specific problem
Well the bigger problem is the sheer # of transactions that would be irrelevant. I need to find a list of txids where let’s say a particular entity (or any of its related entities) actually changed value. Then it is straightforward to do the query I care about only at those transition points. It would be infeasible to run this query on every txid.
[?e ?a ?v ?tx ?added]
clauses don't look at every tx, only those which involve ?e ?a ?v. I think you need a concrete example (some code) to suggest something more concrete
it could be that you can't do what you want efficiently, but we're talking too abstractly for me to say for sure
yea, honestly i didn't really understand [?e ?a ?v ?tx ?added]
clauses. where can I find more information on that?
also, i can create a concrete example if I explore the provided material and still have an open issue.
one question: for a typical clause [?e :some/attribute ?some-value]
: is this just a truncated form of the [?e ?a ?v ?tx ?added]
clause? i.e., are ?tx
and ?added
optional? also what exactly does ?added
mean, is it true for only the single point in time where an association is originally made?
@d.ian.b On Google Cloud, you can run Datomic On-prem yourself, and I believe you may use a managed service like Google Cloud SQL as the backing store. But yes, no Datomic Cloud on GCP, that product is tightly built around AWS services
Well the bigger problem is the sheer # of transactions that would be irrelevant. I need to find a list of txids where let’s say a particular entity (or any of its related entities) actually changed value. Then it is straightforward to do the query I care about only at those transition points. It would be infeasible to run this query on every txid.