Fork me on GitHub
#datomic
<
2019-10-07
>
sooheon14:10:17

d/q takes :offset and :limit. Is it understood that the ordering of results for the same query args and db value is stable?

favila14:10:27

the ordering of the results (regardless of query or inputs) is likely the same because of clojure’s hashing

favila14:10:30

the result is either a hash-set or a bag derived from a hash-set (when using :with), so the key order is going to be the same but arbitrary

favila14:10:43

I’m being pedantic here because a query could potentially produce non-deterministic results on repeated runs: order would not be the same. What matters is whether the result sets are equal in value across subsequent runs so that they hash the same so that the key order is the same

Brian14:10:31

What is the easiest way to delete a Datomic Cloud Solo topology running in AWS? I see the instance, the S3 buckets, some lambdas. I could delete them all manually but I might miss something

Msr Tim16:10:11

hi I created a solo topology . I am trying to create some ions by following the setup here https://docs.datomic.com/cloud/ions/ions-tutorial.html#create-link

Msr Tim16:10:30

In the Target NLB dialog, choose the NLB for your Datomic Cloud system.
The NLB will selectable from a dropdown.

Msr Tim16:10:48

i don't see anything in the dropdown and there are no NLB's in my aws console

marshall16:10:24

@meowlicious99 HTTP Direct requires a production topology system

marshall16:10:33

you can still use lambda ions

marshall16:10:48

that’s for http direct

marshall16:10:08

in solo you can do: https://docs.datomic.com/cloud/ions/ions-tutorial.html#webapp use an ion with a lambda proxy for a web service

Msr Tim16:10:39

ah ok. thank you. I will try that now.

calebp19:10:29

Does datomic-access client <system-name> replace the datomic-socks-proxy script?

marshall19:10:03

the latest article

calebp19:10:20

The “Datomic Analytics (Preview)” article? I saw the note about renaming the bastion to access gateway, but didn’t see anything about the CLI tools

marshall19:10:04

ah. yeah, i guess it’s not that explicit

marshall19:10:22

yes, the cli tools now take the place of the old socks proxy script

calebp19:10:56

I’m walking through getting set up for analytics. So do people or processes that connect to analysis need to have the Datomic Administrator policy? https://docs.datomic.com/cloud/getting-started/configure-access.html#authorize-user

Msr Tim19:10:28

where can download the cli tools

andy.fingerhut19:10:26

Sorry, I forgot which channel this was and may be misinterpreting your request.

Msr Tim19:10:54

oh I meant the cli tools mentioned in this sentence above by @marshall the cli tools now take the place of the old socks proxy script

calebp19:10:46

@meowlicious99 They’re on the releases page

4
Luke Nelson20:10:38

Are default values a thing in datomic like they are in sql? If so how do I set them?

ghadi20:10:04

@lukenelson1298 They are not, but there is a query expression called get-else

souenzzo20:10:34

Once again I can't work due lack of internet connection 😞 I can't understand why cognitect do not release datomic-cloud offline jar or at least datomic-free with a newer version (that will allow https://github.com/ComputeSoftware/datomic-client-memdb work again)

👍 4
cjsauer20:10:01

Agreed. Developing over the internet is extremely tedious and slow. My REPL sessions timeout pretty often, and eval’ing even the simplest queries/transactions will hang for unknown reasons…

👍 4
cjsauer20:10:48

I’ve seen claims like “ions are easy to test at the REPL, because they’re just functions”, but that’s really not true imo. The mismatch between what runs locally and what runs in the cloud costs me countless hours.

4
Msr Tim20:10:19

One of coworker asked me this why can't we do this in datomic (d/transact conn {:tx-data [[:db/add "John" :some-attribute-i-made-up-on-spot "Doe"]]})

Msr Tim20:10:54

why do we have to define :some-attribute-i-made-up-on-spot upfont

Msr Tim20:10:23

can't datomic simply skip creating indexes for that attribute

favila21:10:01

At a minimum, value type and cardinality must be known

favila21:10:05

datomic can’t even store an attribute if it doesn’t know this information

timcreasy21:10:58

Also :some-attribute-i-made-up-on-the-spot is the :db/ident of an entity. That entity wouldn’t exist in the system.

favila21:10:16

good point

favila21:10:25

so we would need automatic ident creation too

4
favila21:10:31

for a feature like this to work

timcreasy21:10:56

[42 :person/name "Tim"] really resolves to something like [42 12 "Tim"]

Msr Tim21:10:34

oh yea. thats what i meant. Why can't datomic create idents on the spot.

favila21:10:11

I mean, you can: {:db/ident :my-ident}

favila21:10:30

but it also needs attribute metadata to be an attribute

favila21:10:42

usually attribute creation creates both

favila21:10:00

{:db/ident :my-attr :db/cardinality …}

favila21:10:49

to both create and reference in the same transaction can be done with a tempid

favila21:10:13

so in theory [{:db/ident :my-attr :db/id "myattr"} [:db/add entity-id "myattr" value]] might work as a transaction, but now we’re back to cardinality and value type problems

Msr Tim21:10:20

makes sense thank you.