Fork me on GitHub
#datomic
<
2018-03-02
>
Datomic Platonic02:03:38

@marshall Brilliant! We'll look into it.

richardwong12:03:37

When datomic connection with sql database and :datasource, the first used datasource will be cached and after that, all call will route to first datasource. It's fine with normal jdbc str, but it didnot work with :datasource.

dominicm14:03:47

Just to check, has anybody open sourced a Datomic exporter to other (SQL) databases? I've asked before, but hoping someone wrote one since then 😛

Datomic Platonic14:03:54

@marshall If custom txInstants can't come before the first timestamp in the database, should we start everybase with an init transaction in 1900 or so? Sorry if I didn't understand the docs correctly.

favila15:03:08

@clojurians873 custom txInstants cannot come before the last tx's instant, i.e. they must be strictly increasing

favila15:03:32

the point being if you're recreating a db of past transactionss, you need to be careful to transact in a historical order

Datomic Platonic15:03:48

@favila ah, that makes sense actually. Sounds like we should be viewing databases more as temporary artifacts that could be reconstructed from data at a whim, rather than have a single 'common source of truth' database.

favila15:03:13

you need a source of truth somewhere

favila15:03:44

but the use case here is constructing easier-to-use derived views of whatever that source of truth is

favila15:03:18

for example, you could have a source-of-truth datomic db where tx is time of record and you explicitly model problem domain times

favila15:03:45

but every once in a while for analysis you can generate another db from that one where the tx time is the problem domain time

favila15:03:12

so as-of and since views of this db exactly correspond to a reconstructed record of historical events

Datomic Platonic15:03:03

@favila interesting idea... i'll ponder that for a bit. We're basically pulling from kafka and other log sources because they're in some cases too large to put in datomic

Datomic Platonic15:03:27

@favila good idea on the problem domain time...

Datomic Platonic15:03:56

(sorry for the spam), but the above post by some guy had us scared for a bit, but your solution sounds like the best

Datomic Platonic15:03:13

in the post he basically says you can't model your problem domain times in datomic, etc

mgrbyte16:03:38

to be fair, I don't think @U06GS6P1N is saying that you can't model your problem domain times in datomic in this post; he's (quote coherantly imho) pointing out that using datomic's transactor time (`:db/txInstant`) for domain-event times is not a good idea, and that you could/should model domain event times using your own schema.

val_waeselynck16:03:47

Confirmed, and I agree with @favila said above

favila17:03:31

Well the hype when datomic was first released was that we would finally not have all those extra time related columns all over our data. But really what datomic solves is more specific

val_waeselynck17:03:00

well I would say it depends what these columns were intended for in the first place. The way I see it, Datomic is great for change detection, but not especially helpful for managing versions. People hoped for the latter, but the former is a much more common need

favila15:03:45

well imagine git had no force-push

favila15:03:52

it's kind of like that

favila15:03:36

txInstance is commit time, but the data in the commit may have other times

favila15:03:20

if you got a date wrong in a git commit, you make another commit to fix it; you don't alter the original commit and force-push