Fork me on GitHub
#datomic
<
2022-06-15
>
joshkh12:06:01

has there been any progress in the area of a packaged solution for Datomic Cloud database restore-from-backup, either community supported or an official solution from Cognitect? we were investigating https://github.com/fulcrologic/datomic-cloud-backup but the project is no longer active, and last we checked it did not support tuples.

6
onetom12:06:20

according to https://docs.datomic.com/cloud/transactions/transaction-functions.html#calling transaction function calls within transactions should be represented as lists. if i use vectors instead, the call still works, just like with tx fns, which are called via their indents, like :db/add, db/retractEntity... can i rely on this undocumented behaviour in the future? i would rather use vectors, because they are slightly more concise to construct programmatically, but also because tooling wouldn't think, that it's a faulty function call, because it's missing its 1st db argument.

favila12:06:15

This feels like a very stylistic choice. On-prem documentation has only ever mentioned vectors and I’ve only ever used vectors. I’m surprised to see lists in docs.

favila12:06:38

so I would be extremely surprised if vectors one day stopped working

favila12:06:53

I think dispatch is entirely driven by the item in the first position

onetom13:06:10

so it just cares about whether the head of the seq is a keyword? or qualified-symbol?. that sounds reassuring. the problem with list is that we would need to jump thru some small hoops, if we want to generate txs, eg:

(let [some-tx-fn-arg 123]
  (d/transact conn {:tx-data [(list `some-tx-fn some-tx-fn-arg)]))
or
`[(some-tx-fn ~some-tx-fn-arg)]
or
[`(some-tx-fn ~some-tx-fn-arg)]
but this wouldn't work:
[(`some-tx-fn ~some-tx-fn-arg)]
which i myself do understand, but not everyone on the team is so fluent in clojure. they would however perfectly understand
[[`some-tx-fn some-tx-fn-arg]]

timo13:06:06

Anyone using Datomic with OracleDB? Our DB is ever increasing. Backups on the other side are comparatively small. I am using gc-storage now but it doesn't change a thing. Anyone knows something that keeps the OracleDB from freeing up space?

dazld14:06:39

I’d say, try restoring your backup to another db, and compare?

dazld14:06:48

maybe there’s something that jumps out

timo14:06:38

that's a good idea, let's see if this can happen at my company.

👍 1
dazld14:06:28

worst that happens is you exercise your backups I guess 🙂

😆 1
favila17:06:19

Not an oracle expert, but apparently they can experience fragmentation. Google “oracle segment advisor”

👍 1