Fork me on GitHub
#biff
<
2023-11-09
>
Lyn Headley13:11:22

does :db/op :create support a map argument like :db.op/upsert for determining the document's identity?

Jacob O'Bryant16:11:58

No, though I suppose that might be worth adding. You can instead use the :biff/ensure-unique transaction function directly. I'll post an example when I'm at my desk

Lyn Headley14:11:44

The combination of :http://db.id/my-id and fixtures.edn is very nice!

Jacob O'Bryant16:11:58

That's why I added support for : 🙂

Lyn Headley17:11:32

Perhaps recklessly, I'm deploying to rocksdb. I'm wanting a function I can use to make a backup copy of the tx-log and, if needed, the document store, while the production system is running. and also a way to restore a system from such a backup.

Jacob O'Bryant19:11:16

you should be able to write some backup/restore functions using XT's transaction log API. I haven't written these myself yet, but I would like to at some point... probably have them store the backups in S3/DO spaces

Jacob O'Bryant19:11:30

I actually run Yakread on just rocksdb and for that I'm just relying on DO's weekly filesystem backups. worst case scenario I could lose a few days of data... but it's not like I'm making a bunch of money from Yakread anyway 🤷