Fork me on GitHub
#datomic
<
2018-08-12
>
joshkh10:08:04

It seems that I can't call select-keys on the result of a transaction. Am I overlooking something?

; Good
(-> conn
        (d/transact (update {} :tx-data conj data))
        (get :db-after)
        (get :t))
=> 24

; Not so good
(-> conn
        (d/transact (update {} :tx-data conj data))
        (get :db-after)
        (select-keys [:t]))
IllegalArgumentException find not supported on type: datomic.client.impl.shared.Db  clojure.lang.RT.find (RT.java:863)

eoliphant12:08:16

just looked at the client docs, Db only supports ILookup (`get` or keyword access), as opposed to being an actual Map or Associative

๐Ÿ‘ 4
joshkh12:08:29

cheers @eoliphant, that's what i suspected

eoliphant12:08:57

np ๐Ÿ˜‰

joshkh12:08:15

+1 for more of a mappy personality though!

joshkh12:08:35

it caught me off guard

alex-dixon17:08:38

Is there a limit on the size of a string valueType that can be stored in Datomic?

okocim17:08:29

4096 characters

alex-dixon17:08:55

No idea how I missed that. Thank you ๐Ÿ˜Š

orestis18:08:45

How do people go over that 4k String limit? Kind of annoying to have to bring in an external data store for this. Use case would be anything that stores user-entered text.

blandinw23:08:58

is there anybody from the Datomic core team here? our database is going crazy, generating a seemingly unlimited amount of :kv-cluster/create-val even though there's almost no txs going on, we don't know what to do