Fork me on GitHub
#datomic
<
2019-01-22
>
jeroenvandijk12:01:07

A difference between enumerations and keywords are that the enumeration keyword is only saved once (in the schema), where as a keyword is saved on every transaction (and giving you the option of freeform input). So if you have a limited set of keywords and you know them in advance you should use enums for better read, write and storage behaviour (so pointer to keyword in the schema = 1 datom VS pointer to keyword and keyword = 2 datoms)

jeroenvandijk12:01:51

@lockdown- I'm curious where you got this from Datomic is a slow DB use mostly for low load internal apps ?

misha13:01:07

yeah, slow and low need something to be contrasted with. And why internal?

tim13:01:24

@jeroenvandijk > a keyword is saved on every transaction so is the entity-id for each enum reference pointer. the question, as I understand it from antons post, is not about disk space, as we know enums means we store less data. it’s not about transactions, because we know there’s a write either way. it’s about reads, memory footprint and performance. I could care less about storing the extra data to disk.

jeroenvandijk14:01:06

I think the difference comes down to: 1. the enum is indexed, the keyword is not (by default) 2. the enum is one datom read, the keyword is two I don't know how this translate into your specific performance numbers, but enum should always be better

anders14:01:07

what is the suggested strategy for backing up dbs using dynamodb as storage? is enabling backups of dynamodb tables a safe route or should i rather use the datomic cli?

marshall14:01:27

Datomic On-Prem or Cloud?

marshall15:01:43

You should use datomic backup

marshall15:01:45

“Replication or backup of eventually consistent storages cannot (by definition) make consistent copies and is not suitable for disaster recovery. ”

anders16:01:12

thanks 🙂