Fork me on GitHub
#datomic
<
2018-12-30
>
jaihindhreddy-duplicate00:12:55

Typo at sed 's/iProcessing/Processing/g'

jaihindhreddy-duplicate19:12:39

Also, typo at sed 's/HMAC-SHA26/HMAC-SHA256/g'

marshall18:01:31

I’ve fixed these. Thanks!~

ronny17:12:43

Is there a way to write unit test with datomic cloud? I tried to mock the database name to be an in-memory db for each test but didn’t work.

kenny17:01:07

Hi @UEUB9VA30. We have been using this lib for writing unit tests with the Datomic Client API: https://github.com/ComputeSoftware/datomic-client-memdb

jaihindhreddy-duplicate17:12:41

Why does :db/unique require :db.cardinality/one? A person can have multiple emails and each email can still uniquely identify a person.

favila22:12:16

I'm not aware of any such restriction? I just made one in a mem db, no problem.

jaihindhreddy-duplicate22:12:56

Just setting up ions. I'm yet to try Datomic.

favila22:12:04

This might be cloud specific

favila22:12:37

On prem doesn’t care

favila22:12:35

As to why, donno. It can cause confusion (known by personal experience) when trying to upsert different entities in the same transaction

favila22:12:07

Or more precisely, what you think are different entities

favila22:12:44

So either semantically they had a greenfield and decided it was a good idea but couldn’t do it on on prem for backward compat; or the impl of cloud drove them to it; or the docs are wrong

jaihindhreddy-duplicate17:12:04

Is this restriction due to technical or architectural reasons, or is multi-cardinality unique attributes a bad idea in some way I'm blind to?

lilactown18:12:52

I would imagine there’s greater chances of checking uniqueness to be quite slow if it could be multi-cardinality. but honestly I don’t know

👍 4
lilactown19:12:13

has anyone put REBL into their Ions app yet?

lilactown19:12:23

about to try it, wondering if there’s an example floating around

lilactown19:12:38

I’m using Emacs/CIDER so I imagine I’ll have to futz with that 😕

Adrian Smith19:12:47

I'm trying datomic for the first time what does this error mean?

bin/transactor config/samples/dev-transactor-template.properties
Launching with Java options -server -Xms1g -Xmx1g -XX:+UseG1GC -XX:MaxGCPauseMillis=50
Starting datomic:, storing data in: data ...
System started datomic:, storing data in: data
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by io.netty.util.internal.PlatformDependent0 (file:/Users/adriansmith/Datomic/datomic-pro-0.9.5786/lib/netty-all-4.0.39.Final.jar) to field java.nio.Buffer.address
WARNING: Please consider reporting this to the maintainers of io.netty.util.internal.PlatformDependent0
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

lilactown19:12:06

I don’t think that should effect operation at all

Adrian Smith19:12:32

shame we can't do brew install datomic with cask then brew services to control datomic

dogenpunk20:12:13

@marshall circling back on my issue from Friday. Want to say thanks for your time investigating. The issue seems to be connected to the empty vectors in the components. Once I removed those, the components were properly stored and retrievable.

marshall13:01:15

Glad you got it resolved!

lilactown20:12:22

does the current datomic client API implement a nav-igable protocol for data returned by queries / etc.?

lilactown20:12:44

I’m trying to use it with REBL and, e.g. when I pull an entity that has a ref to another entity, it doesn’t appear to have a custom nav implemented on it. just trying to figure out if PEBKAC or if it’s not out yet