Fork me on GitHub
#datomic
<
2019-10-01
>
wei13:10:32

what happened to :db.type/bytes? is there a similar type in Datomic Cloud for storing a map, or other data that doesn't fit into the other valueTypes?

Joe Lane14:10:24

@wei If it's big, use a reference in s3, if not, you can Base64 encode/decode either the pr-str of a datastructure or even the binary representation. Example would be a fressian encoded vector could then be Base64 encoded into a string. The tricky part is knowing if somehow you would overflow the string size limit of ~4000 characters. Hence the first recommendation of using s3.

👍 4
Joe Lane14:10:15

I'm not speaking authoritatively about what happened to :db.type/bytes, just sharing some ideas i've had around working around their absence.

jaret15:10:54

New release for on-prem and cloud ^

🚀 16
stuarthalloway15:10:50

for the impatient https://www.youtube.com/watch?v=jVKGYu0_OCA

💯 8
👍 8
🎉 4
wei04:10:34

congratulations on shipping! this was my #1 feature request for a while and I'm thrilled that you guys have pulled it off. would be fun to hear about the challenges you encountered implementing this.

jeroenvandijk16:10:29

Is it supposed to work with AWS Athena as well? I didn't see a mention in the docs, but that should be similar to Presto

richhickey16:10:21

there isn’t a path from Athena to ROYB presto, and QuickSight requires LDAP, so neither supported as of yet

jeroenvandijk16:10:55

Makes sense. Thanks for explaining

sjharms17:10:31

The new release is exciting, hoping to get some help with a chicken / egg problem. I would like to experiment with Datomic again (originally downloaded starter edition years ago), but it looks like my copy is limited to Datomic as of 2016. It seems like if I want to make software on my workstation and then make a pitch as to why we should buy it (or use AWS hosted etc once proven), I am stuck either getting full buy-in / budget up front, or trying to develop on my systems and never reboot so I can save my data in-between sessions via Datomic Free. Could someone help me understand if this is accurate, or if I am just misunderstanding the workflow?

stuarthalloway17:10:13

Datomic Free is durable and survives reboots...

stuarthalloway17:10:09

Or running Cloud (Solo) is ~$1/day (if you leave it on all the time)

sjharms17:10:41

Ah ok, thank you! I didn't realize Datomic Free wasn't in-memory only

jeroenvandijk11:10:43

I'm a happy user of Datomic Pro, but I wonder if Datomic Free would run nicely in a distributed fashion with https://aws.amazon.com/efs/

souenzzo13:10:10

@U072WS7PE datomic-free still in 0.9.5697 We can't use/learn/develop foss tools around ensure, :keys or any of these new datomic features (as SQL connector) https://mvnrepository.com/artifact/com.datomic/datomic-free

Msr Tim21:10:05

hi, is this documentation still applicable for hosted datomic

Msr Tim21:10:54

You can request new entity ids by specifying a temporary id (tempid) in transaction data. The Peer.tempid method creates a new tempid, and the Peer.resolveTempid method can be used to interrogate a transaction return value for the actual id assigned.

Msr Tim21:10:21

when would someone request new entityids

Msr Tim21:10:49

Squuids are no longer required in Datomic (Cloud or On-Prem) now that Datomic has Adaptive Indexing. 

Msr Tim21:10:24

official docs seems to say

Msr Tim21:10:35

It is often important to have a globally unique identifier for an entity. Where such identifiers do not already exist in the domain, you can use a unique identity attribute with a value type of :db.type/uuid. 

Msr Tim21:10:52

i don't have globally unique id for my entities

Msr Tim21:10:01

what should i do?

nwjsmith21:10:13

if you don’t have a “natural key” for your entities, generate a random UUID

ghadi22:10:07

https://docs.datomic.com/cloud/transactions/transaction-processing.html @meowlicious99 I know you're doing on-prem and not cloud, but that ^ is a useful reference for how transactions work

Msr Tim22:10:32

oh I am actually on cloud

Msr Tim22:10:58

google fu for on prem docs seems to be high so I always end up on on prem docs.

Msr Tim22:10:06

maybe they should have different color or something 🙂

☝️ 4
marshall23:10:53

On prem docs have a colored bar at the top

dmarjenburgh08:10:07

That’s how I always recognize it ^^

henrik10:10:48

Rename one of them to Cimotad

henrik10:10:56

Or Dadomic. You’ll be able to tell by the docs being 90% puns.

Msr Tim15:10:49

oh i just noticed that. cool. thank you!