Fork me on GitHub
#xtdb
<
2021-09-22
>
allandaviesza18:09:08

When using the history API to get back a list of document versions, is there a way that later on we can query only a single version? Perhaps query via a transaction id or something?

jarohen19:09:15

Once you have a transaction ID in hand, you can request a db at that transaction ID, and then call entity to get the entity at that transaction:

(xt/entity (xt/db {::xt/tx-id tx-id}) 
           :the-entity-id)

allandaviesza05:09:07

ah nice, thank you

1
Steven Deobald20:09:54

This is perhaps the silliest request ever, but XTDB resources currently have a bit of a searchability problem. Slack provides no public archives and, thus far, we don't have public archives for the xtdb Zulip yet. We have an FAQ, but it's highly manual and slow to update. We're planning to include a link to StackOverflow on the new website (since that's likely to become a common resource for users in the near future)... but it's currently very lonely on there: https://stackoverflow.com/search?q=xtdb I'm not even sure how many of us actually have StackOverflow accounts. But if you do and you're familiar with the process / routine / ethics of SO, those of us who are less familiar would probably appreciate it if some common questions started to appear up there under the new, searchable name. 🙂 Feel free to point us to your question from here, even if you already have an answer within Slack/Zulip, so we can answer it where it's easier for Google and DDG to find it.

👍 3
seancorfield20:09:27

For some reason this channel isn't being mirrored by @logbot to https://clojurians-log.clojureverse.org/xtdb -- I'll follow-up in #clojureverse-ops

🙏 1
🙇 1
seancorfield21:09:51

The maintainer of the logging system has rebuilt the list of channels and reimported all messages since September 1st, but CloudFlare is still caching old log page renderings. You can browse the XTDB archive by adding a cache-busting query: https://clojurians-log.clojureverse.org/xtdb?1

👍 1
🙏 1
seancorfield21:09:17

Even though I answered that in the thread above, I'll leave it up to the XT folks to provide an official answer...

👍 2
seancorfield21:09:51

The maintainer of the logging system has rebuilt the list of channels and reimported all messages since September 1st, but CloudFlare is still caching old log page renderings. You can browse the XTDB archive by adding a cache-busting query: https://clojurians-log.clojureverse.org/xtdb?1

👍 1
🙏 1
az23:09:23

Are there any guides on how to host a production db?

Steven Deobald15:09:08

We don't have a guide specifically targeting ops for production dbs at the moment. Out of curiosity, what config are you hoping to use? Given that xtdb 1.x is quite flexible, there's a lot to flesh out in such a guide. It will help to know what underlying stores (and in what configuration) people are putting into prod.