Fork me on GitHub
#datomic
<
2018-04-05
>
caleb.macdonaldblack07:04:53

Would anyone recommend against storing edn in datomic? I can query it using read-string with some destructuring in datalog. It greatly simplifies my current problem.

robert-stuttaford07:04:54

@caleb.macdonaldblack we do this a lot. sometimes you just need to store ad-hoc data.

caleb.macdonaldblack09:04:50

Thanks for the response!

robert-stuttaford09:04:37

try

[:find (count ?b)
 :with ?v
 :where
 [?b :bar/baz ?v]]

caleb.macdonaldblack09:04:21

@robert-stuttaford Thanks! I gave a bad example. I could have just done a count on the entity id. But for a sum I would need to use :with and that’s what I was looking for.

caleb.macdonaldblack09:04:04

That’s what I ended up with

mynomoto19:04:18

I'm trying to register on AWS Marketplace Product Support Connection but it says that You are not currently subscribed to any products which are Product Support Connection enabled. You may return to this page to edit your support contacts after you have subscribed to a participating product., I checked and I'm subscribed to Datomic Cloud. Any clues about what I'm doing wrong?

marshall19:04:32

@mynomoto We’re working with AWS to enable Product Support Connection - - not yet activated

mynomoto19:04:28

@marshall Ok, thanks. The datomic cloud marketplace page mentions it, that's why I was thinking I was doing something wrong.

marshall19:04:34

yeah, we were hoping it would be enabled sooner; still working on it 🙂

mynomoto20:04:51

Removing a dependency fixed the error above.

gcast21:04:10

How big a database in Terabytes can Datomic hold without totally obliterating the 10 Billion datom threshold? After googling quite extensively, I'm struggling to see any performance reports based on actual storage size. Most estimates just describe upper bound in terms of datoms.

rgorrepati22:04:31

Hi, I am trying to investigate a high cpu usage(> 150% consistenly) on the transactor, causing timeouts for clients. Looking at the transactor logs, I see messages that look like “datomic.kv-cluster - {:event :kv-cluster/update-pod,” What does update pod mean?

caleb.macdonaldblack23:04:34

Can I limit results in datalog?

gcast23:04:29

I believe you can put a limit on pulls

caleb.macdonaldblack23:04:54

@gcast The limit in pull is limited to cardinality many attributes

gcast23:04:02

I see. I'm curious if query results are lazy or eager. Plain clojure functions may suffice if its lazy

caleb.macdonaldblack23:04:54

I don’t think its lazy

gcast23:04:52

interesting. the . syntax in the find returns a single value

gcast23:04:04

but you are taking 2?

caleb.macdonaldblack23:04:13

Just in that example

caleb.macdonaldblack23:04:29

I plan on paginating

gcast23:04:31

gotcha. well good to know take can be used over entity binding