Fork me on GitHub
#datomic
<
2019-03-28
>
quadron09:03:14

let's say I have a json map with 10 fields; each json map is modeled as an entity in a datomic schema and the json fields map neatly to entity attributes. does that mean that asserting every json map requires at least 9 datoms? (one being the identity index)

benoit13:03:15

If you need to update all 10 fields, yes. But usually you just update a subset of the fields.

✔️ 4
misha09:03:43

+1, if you save each map as a separate empty transaction

eoliphant15:03:10

hi, I’m running into an issue where cloud/ion deployments are failing, and I’ve tracked the issue to the failure of one the lambdas in the deployment step function. I’m getting the following error back

{
  "error": "States.DataLimitExceeded",
  "cause": "The state/task 'arn:aws:lambda:us-east-1:xxxx:function:dat-NZ-Compute-CreateLambdaFromArray-1915A1Q1QXEG8' returned a result with a size exceeding the maximum number of characters service limit."
}
any ideas what might be causing this?

Joe Lane15:03:22

@eoliphant I know this is weird, but check if shortening the description of your ion fixes it. I may have run into something similar in the past and that fixed it.

Joe Lane15:03:46

(Not sure how long the description is, if its super short then maybe thats not the obvious fix)

eoliphant15:03:19

Yeah, i’ve seen that before as well, didn’t think any of the new ones were longer than ones that were working but will double check

dangercoder15:03:18

Many thanks for the great Datomic Cloud tutorial. 🙂✌️ https://docs.datomic.com/cloud/setting-up.html

souenzzo17:03:10

can I send cast to stdout?

jeff.terrell18:03:46

Ah, great! Thanks for letting me know.

dangercoder18:03:33

Anyone with any tips and tricks on how I can get an overview of all schemas in a datomic cloud database? I used to use Datomic console for this before when I was using a peer.

4
dangercoder18:03:33

Sorted it with some queries. I guess I could build some private tool to get an overview of it 🙂

mdhaney21:03:03

I haven’t tried it yet, but you could look into REBL. https://youtu.be/c52QhiXsmyI

Jakub Holý (HolyJak)19:03:02

I'd believe I found a mistake in the Datomic tutorial https://docs.datomic.com/on-prem/tutorial.html but I surely just missed something. They 1. Transact inorrect inventory counts, 2. Retract one, 3. Update the other, 4. Look at the DB as-of #1 so I'd expect to see what was added, ie

[[:db/add [:inv/sku "SKU-21"] :inv/count 7]
   [:db/add [:inv/sku "SKU-22"] :inv/count 7]
   [:db/add [:inv/sku "SKU-42"] :inv/count 100]]
but instead the query shows
(d/q '[:find ?sku ?count
       :where [?inv :inv/sku ?sku]
              [?inv :inv/count ?count]]
     db-before)
=> [["SKU-42" 100] ["SKU-42" 1000] ["SKU-21" 7] ["SKU-22" 7]]
Why is sku 42 there twice when the cardinality of inv/count is one and when it was only updated from 100 to 1000 in the last tx #3? Can anyone be so kind and explain?