Fork me on GitHub
#datomic
<
2018-11-06
>
ro600:11:22

On Datomic Ions Solo, I'm getting an error Unable to resolve entity: :db/index when trying to transact schema

ro600:11:30

oh, is :db/index not supported on Datomic Cloud?

ro600:11:12

I guess fulltext indexes aren't either...

henrik05:11:22

Alas, no. And be careful with large strings as well.

dazld12:11:52

hey all - how do you all deal with possible transaction timeouts? we’ve tried something like

(defn transact-timeout [conn tx timeout timeout-result callback]
  (future
    (callback (deref (d/transact-async conn tx)
                     timeout
                     timeout-result))))
but that doesn’t seem to do the trick. any advice?

dazld12:11:45

retrying would be a use case

mping14:11:22

theres probably a timeout somewhere

mping14:11:06

(d/transact conn {:tx-data [[:db/add "" :db/doc "might not succeed!"]]
                  :timeout 1})

marshall15:11:13

That’s an example impl of transact with backoff-retry using transducers

👍 4
dazld17:11:58

thank you both, will take another look

lwhorton17:11:54

i’m having a rather hard time wrapping my head around datalog query/pull syntaxes. is there a resource other than the official guide that someone can point me toward?

lwhorton17:11:48

i feel like reading the language grammar and the official reference documentation will help me as a step 2, but for step 1 i just need a bunch of examples

ro617:11:56

here's an interactive tutorial: http://www.learndatalogtoday.org/

bananadance 4
ro617:11:34

not sure it covers pull

schmee18:11:56

@lwhorton I recommend shoving a bunch of data you’re familiar with into Datascript and then experiment for yourself!

👍 4
schmee18:11:11

that + the official docs will get you off the ground

kenny18:11:54

I just received this exception when trying to transact to a newly created database:

clojure.lang.ExceptionInfo: Loading database
                                         clojure.core/eval      core.clj: 3206
                                                       ...                    
                                      dev.system/eval34859     REPL Input     
compute.command-processor.streams.customer/create-customer  customer.clj:   31
                         datomic.client.api/eval13775/fn/G       api.clj:  127
                      datomic.client.api.sync/eval34382/fn      sync.clj:   82
                             datomic.client.api.async/ares     async.clj:   56
                                      clojure.core/ex-info      core.clj: 4739
clojure.lang.ExceptionInfo: Loading database
    cognitect.anomalies/category: :cognitect.anomalies/unavailable
     cognitect.anomalies/message: "Loading database"
What is the correct solution? Retry?

kenny18:11:20

If I delete the database and try again, I get:

clojure.lang.ExceptionInfo: :db.error/db-deleted 52ece0c2-7322-4eb7-af99-10f6dbc8ae5c has been deleted

marshall18:11:18

@kenny yes, retry on unavailable

ro620:11:43

Is it possible to retract an entire schema entity if its attributes haven't been used?

marshall20:11:06

@robert.mather.rmm no, schema can’t be retracted

stopa21:11:02

hey team, noob question: I am in the process of switching to a different db, in one of our usecases of datomic I ran the switch in prod -- but I think there are still some stray reads happening, that I may have missed. Is there a quick way to check in datomic -- "what has been the last queried thing?"

ro622:11:31

Is it possible to run one transaction that both creates an entity and executes a tx fn involving that entity?

chris_johnson23:11:12

Does anyone know what logging to expect from a Peer server talking to ElastiCache in AWS? As far as I can tell, this server has all the VPC networking/security group setup correct but it never seems to put any items into the EC cluster and also seems to log only one connection attempt event and nothing thereafter.

chris_johnson23:11:34

Is there a list somewhere of what I’d expect to see logged at which log levels?