Fork me on GitHub
#datomic
<
2018-05-17
>
val_waeselynck09:05:21

By the way, am I right in assuming that Adaptive Indexing must have been way more straightforward to implement for Datomic than for ordinary databases, due to writes being separated from reads?

eraad15:05:53

Hi! I´m getting this error when connecting to Datomic Cloud from Lambda: Unable to connect to system: {:cognitect.anomalies/category :cognitect.anomalies/unavailable, :cognitect.anomalies/message “Connect Timeout”}: clojure.lang.ExceptionInfo clojure.lang.ExceptionInfo: Unable to connect to system: {:cognitect.anomalies/category :cognitect.anomalies/unavailable, :cognitect.anomalies/message “Connect Timeout”} {:config {:server-type :cloud, :region “us-west-2”, :system “datomic-cloud-prod”, :query-group “datomic-cloud-prod”, :endpoint “http://entry.datomic-cloud-prod.us-west-2.datomic.net:8182“, :endpoint-map {:headers {“host” “http://entry.datomic-cloud-prod.us-west-2.datomic.net:8182%22}, :scheme “http”, :server-name “http://entry.datomic-cloud-prod.us-west-2.datomic.net”, :server-port 8182}}} at clojure.core$ex_info.invokeStatic(core.clj:4754) at clojure.core$ex_info.invoke(core.clj:4754) at datomic.client.impl.cloud$get_s3_auth_path.invokeStatic(cloud.clj:171) at datomic.client.impl.cloud$get_s3_auth_path.invoke(cloud.clj:162) at datomic.client.impl.cloud$create_client.invokeStatic(cloud.clj:205) I read past responses on having your S3 IAM policies squared away. I think I have everything setup (indeed, it worked before, not sure what we did :s). I’d appreciate any help!

eraad15:05:29

Funny thing is that it stopped working at some point. I will try creating a VPC endpoint. Will report back.

cjsauer16:05:11

Curious to know what kind of success you find. The VPC endpoint solution is much simpler than my original private subnet suggestion, but I have yet to try it myself.

joseayudarte9116:05:34

Hi! I’m trying to get Peer Library of Datomic Pro, using Leiningen, but I cannot find it in Clojars. I had already com.datomic/datomic-free "0.9.5206" version working but it seems there is no version for “pro” one hosted there I think. Do you know I place to get the latest version from Leiningen?

akiel16:05:13

you need an account from http://datomic.com. than you can use a special Datomic repository with credentials. It should be documented.

alexmiller17:05:26

if you look at https://my.datomic.com/account portal with your login, there are instructions.

joseayudarte9112:05:32

Perfect, thanks!

cjsauer18:05:10

Been running into this error all day trying to use Datomic Cloud. It's being thrown while trying to call d/client. Has anyone encountered this before? >NoClassDefFoundError Could not initialize class com.amazonaws.partitions.PartitionsLoader com.amazonaws.regions.RegionMetadataFactory.create (RegionMetadataFactory.java:30)

cjsauer18:05:41

This is with version 0.8.52 of com.datomic/client-cloud

cjsauer18:05:36

Ah, never mind. I had to add this line to my project.clj:

[ring-webjars "0.2.0" :exclusions [com.fasterxml.jackson.core/jackson-databind]]
Dependency hell strikes again

dogenpunk20:05:02

Hi! I’m looking for some guidance on storing time values in datomic (on-prem). I’ve been developing my app using the new java.time classes (via clojure.java-time) and I’m running into issues trying to coerce values into datomic friendly values.

dogenpunk20:05:43

Specifically, coercing OffsetDateTime into Instant that is compatible with :db.type/inst

dogenpunk20:05:08

The application is for scheduling appointments/resources

donaldball20:05:53

I have essentially resigned myself to using java.util.Date instances as values, and to only use the new java.time classes when doing arithmetic

bj20:05:28

Kind of a beginner question... As a datomic peer, if I query against the result of (datomic.api/db connection), am I querying against database as it appeared at the point in time when that function was called, or am I querying against the database in real-time? The reason I'm asking is because it sounds to me like the documentation is implying the former, and that sounds magical, so I want to make sure

Retrieves a value of the database for reading. Does not
communicate with the transactor, nor block.

eraserhd20:05:36

@bj it is the former. Datomic is kind of like a git repo, where "db" is a commit hash, and "conn" is a branch name.

eraserhd20:05:50

You don't get a whole snapshot of the database in memory. Pieces are loaded as required. But it is a coherent point-in-time snapshot.

bj20:05:43

Thanks, and I like that analogy

dogenpunk21:05:35

@donaldball are you converting to java.time classes in queries?

dogenpunk21:05:41

That is, in :where clauses?