This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-01-22
Channels
- # announcements (2)
- # beginners (42)
- # calva (2)
- # cider (13)
- # clara (2)
- # cljdoc (1)
- # cljs-dev (8)
- # clojure (118)
- # clojure-australia (1)
- # clojure-europe (3)
- # clojure-finland (2)
- # clojure-italy (42)
- # clojure-japan (1)
- # clojure-nl (2)
- # clojure-spec (26)
- # clojure-uk (58)
- # clojurescript (83)
- # cursive (6)
- # data-science (2)
- # datomic (13)
- # devcards (2)
- # duct (9)
- # figwheel-main (4)
- # fulcro (11)
- # graphql (51)
- # jobs (1)
- # juxt (14)
- # kaocha (1)
- # off-topic (24)
- # re-frame (65)
- # reagent (4)
- # reitit (19)
- # remote-jobs (8)
- # shadow-cljs (50)
- # specter (3)
- # speculative (1)
- # vim (5)
- # yada (50)
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)
@lockdown- I'm curious where you got this from Datomic is a slow DB use mostly for low load internal apps
?
@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.
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
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?
ddb backup will not work: https://docs.datomic.com/on-prem/ha.html#use-datomic-backup