Fork me on GitHub
#datomic
<
2016-03-01
>
akiel14:03:27

I try to test my code even without an in-memory database. What is the reason resolve-tempid needs a database especially the :db-after from the transaction? The tempids map already contains the mapping from tempid to actual id. What does resolve-tempid on top of a simple map lookup?

stuartsierra15:03:57

@akiel: It needs the database to resolve entity partition IDs.

akiel15:03:55

@stuartsierra: in case I create a partition?

stuartsierra15:03:27

d/tempid doesn't return a simple number. It returns a record containing a partition ident (keyword) and a number.

stuartsierra15:03:40

The partition gets resolved into a number as part of the transaction.

alexisgallagher17:03:12

Hello all. I'm having a look at datomic to evaluate it and I have a question about getting started.

alexisgallagher17:03:17

I noticed that there are day of datomic training videos ( http://www.datomic.com/part-i-what-is-datomic.html ) and a repo of day of datomic sample code ( https://github.com/Datomic/day-of-datomic ).

alexisgallagher17:03:51

But the code in the repo does not match the configuration that Stu Halloway actually sets up and encourages people to follow along with. Does anyone know if there are material online that allow you to actually follow along with Stu's configuration and demoes? Or are you on your own with that?

alexisgallagher18:03:06

Ah, I see, it's broken out over separate repos and help pages. Not integrated. Ok.