Fork me on GitHub
#datomic
<
2021-11-04
>
jdkealy00:11:13

Does bin/datomic ensure-transactor my-transactor.properties my-transactor.properties not work for sql storage? When I copy the config/sample/sql-transactor-template.properties and run bin/datomic ensure-transactor` i get the error:

bin/datomic ensure-transactor config/samples/sql-transactor-template.properties config/samples/sql-transactor-template.properties 
java.lang.IllegalArgumentException: No method in multimethod 'ensure-transactor*' for dispatch value: :sql

favila01:11:42

No, sql varies a lot. See the sample ddl

favila01:11:07

There are examples for Postgres and MySQL

Tobias Sjögren08:11:07

What are entity id ranges for the db, tx and user partitions?

favila11:11:08

Use the d/entid-at function in the peer api to construct some and find out. I’ve been told cloud entity ids may have a different structure

kenny23:11:52

Should trailing _s in where clauses always be elided? e.g., [:find ?e :where [?e :a _]] is always preferred over [:find ?e :where [?e :a]].

Lennart Buit07:11:45

I personally like the underscore. To me it shows that the binding was not forgotten, but it was explicitly ignored.

Drew Verlee02:11:01

Not really. I would use it when you have to e.g [_ ...] Keep in mind, there are 5 elements in that tuple, you are typically ignoring 2.