This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-07-31
Channels
- # announcements (4)
- # aws-lambda (1)
- # babashka (25)
- # beginners (60)
- # calva (33)
- # cider (15)
- # cljdoc (1)
- # clojure (28)
- # clojure-dev (1)
- # clojure-europe (4)
- # clojurescript (29)
- # clojureverse-ops (4)
- # conjure (10)
- # datomic (4)
- # graalvm (4)
- # holy-lambda (4)
- # honeysql (13)
- # introduce-yourself (1)
- # lambdaisland (1)
- # missionary (11)
- # music (2)
- # off-topic (35)
- # pathom (17)
- # pedestal (20)
- # reagent (3)
- # sci (10)
- # shadow-cljs (39)
- # sql (6)
- # tools-deps (6)
- # vim (1)
just a general data modeling question, now that composite keys are usable, is it still best practice to use uuids as primary keys everywhere? or is it better to use composite keys and not have the uuid? in my particular case, I have multiple projects (`:project/uuid`) but each project has its own tokens numbered starting from 0, so the tokens have the non-unique attribute :token/id
and the unique composite attribute :token/project+id
. is that best practice or should the tokens just have a :token/uuid
attribute for its primary key?
separate question, should the token's composite key be project ref + token id (a long) or should it be project uuid + token id?
It really depends on your use case. > each project has its own tokens numbered starting from 0 Assuming that it’s a long because you need to sort the tokens by primary key, a sequential unique key. might be a good alternative. UUID v6 (Draft) https://datatracker.ietf.org/doc/html/draft-peabody-dispatch-new-uuid-format CUID https://github.com/hden/cuid
I have the following Dockerfile:
FROM alpine:latest
RUN apk add wget
ARG VERSION
RUN wget --continue --tries=0 [email protected] --http-password=bar -O datomic-pro-$VERSION.zip
CMD ["datomic-pro-$VERSION/bin/transactor" "config/samples/dev-transactor-template.properties"]
However, I’m getting this error upon running it:
docker build . -f Dockerfile_db -t humboi/database --build-arg VERSION=1.0.6316
#6 748.3 2021-07-31 13:56:30 (127 KB/s) - Connection closed at byte 96492108. Retrying.
#6 748.3
#6 749.3 --2021-07-31 13:56:31-- (try: 2)
#6 749.3 Connecting to ()|52.217.90.44|:443... connected.
#6 751.6 HTTP request sent, awaiting response... 403 Forbidden
#6 751.6 2021-07-31 13:56:33 ERROR 403: Forbidden.
#6 751.6
------
executor failed running [/bin/sh -c wget --continue --tries=0 --http-user=prikshet21@gmail.com --http-password=3c40665b-34cf-4963-ac33-2d997c025a2d -O datomic-pro-$VERSION.zip]: exit code: 8
http-direct only supports one entry point correct? I don't need it to support more, i'm just sanity checking my understanding of whats going on.