Fork me on GitHub
#datomic
<
2018-09-26
>
favila01:09:05

The “builtin” query aggregators and functions match on a symbol with no namespace

favila01:09:25

Like count, sample, get-else, missing?

joshkh09:09:16

before i continue down the road of a custom migration tool, does Cognitect ever plan on supporting a feature to copy/clone a Datomic Cloud database?

henrik09:09:40

Well, even if they do, could you wait until the arbitrary point in time when it is released?

joshkh09:09:25

that's the reason i'm asking. if the feature was around the corner then i'd make do.

joshkh09:09:31

..but can't avoid it forever 😉

joshkh12:09:14

thanks @U06GS6P1N. i guess i'm just curious if copying/cloning a database will ever be a cloud supported feature 🙂

joshkh12:09:18

(officially)

jeff.terrell13:09:21

There's a feature request app you could check. Try this page then clicking on the 'feature request' button. https://www.datomic.com/support.html

henrik04:09:54

If you want to just copy/clone (not do a migration), isn’t the implementation basically just: 1. Create new DB with the same schema, 2. Write a loop that sources data from one and transacts it to the other.

eoliphant17:09:13

Hi, i'm trying to upgrade a Cloud 402, system to the latest version, and follwing the 'first upgrade ever' instructions. The stack deletion failed because it looks like the TxGroupRole still has policies attached. Is it ok to fix this by hand? and retry the deletion?

eoliphant18:09:05

Solved, the problem, looks like the delete is only pulling off the policies that were added via the stack creation, the policies i added by hand were gumming up the works. Might be a useful FYI for the docs, and.or perhaps a future rev can grab the full list of policies and remove them

jaret20:09:53

Thanks! I didn’t think of that. I’ll add it to the first upgrade docs. It shouldn’t be a problem for upgrades after that point

4
eoliphant23:09:29

quick question, I'd like to match an attribute's value if it exists, and nil if it doesn't. Tried or'ing my clause with a missing but that makes datalog frown lol because of the var mismatch. or-join doesn't help as I need the value

(or [?o :otuabund/accepted ?a]
         [(missing? $ ?o :otuabund/accepted )])
I've a query aggregate function that looks at the collection of these and returns a value based on if they say they're all true, false, mixed, or 'missing'

favila23:09:28

get-else with a sentinel value

favila23:09:51

nil seems to be toxic to datalog, i always use sentinels instead

favila23:09:26

[(get-else $ ?o :outabund/accepted :missing) ?a] for example

8
eoliphant23:09:41

ah, that's simple. in the meantime, i realized it was better modeled with enums anyway , but will keep that in my back pocket

eoliphant23:09:49

random question, :db/index is automatic in Cloud? I've a schema generator dusted off and I just realized it wasn't adding it to schema atttributes, and of course it blew up, when i added it

oscar16:09:50

Yeah. It's always on in Cloud.