Fork me on GitHub
#xtdb
<
2021-10-22
>
Jakub Holý (HolyJak)07:10:06

FYI https://xtdb.com/blog/dev-diary-aug-21.html returns 404 and "An Error Occurred While Attempting to Retrieve a Custom Error Document"

jonpither07:10:17

Hmm. This URL does work https://xtdb.com/blog/dev-diary-aug-21/, so looks like we need to fix the routing with a redirect potentially.

👍 1
🙏 1
jonpither07:10:32

Some major changes to the site happening yesterday

Steven Deobald11:10:53

> Some major changes to the site happening yesterday ...and continuing for a while, which is why we haven't announced the new website yet. 😉 @holyjak Thanks for the heads-up. 🙏 Some 302s are emerging as we speak.

Steven Deobald11:10:07

Apologies for any website clumsiness, folks. This is quite a substantial overhaul under the hood, partly in preparation for next year's 2.x series of XTDB.

👍 2
FiVo11:10:35

Is is it possible to query the transaction log? Was thinking of something like

(xt/q (xt/db node) '{:find [(pull ?tx [*])]
                        :where [[?tx :xtdb.api/tx-id]]})
I am mainly interested in getting all the info for certain transaction ids. I don't know if transactions are even first class entities so maybe this doesn't make much sense.

refset11:10:51

> I don't know if transactions are even first class entities In XT they're not. You would need to reify them yourself, which can be done in userspace (although to capture the tx-id you'd need a transaction function) Have you looked at the open-tx-log API already? What are you trying to achieve? Is this some kind of audit query?

FiVo11:10:40

Yes audit query is exactly what I am looking for. I saw the open-tx-log function, just seemed a bit inefficient to iterate over everything, but I think it will do for now.

👍 2
richiardiandrea16:10:54

Hi folks, I know I can check the source but would the following work? Would the current time be set as valid time?

[[:crux.tx/put {:foo :bar} nil] [:crux.tx/put {:quuz :baz} nil]]

refset17:10:07

well, I always check the source anyway 😅 I'm fairly certain that the answer is yes, because nil will end up in the conformed tx-op map (which gets stored on the tx-log) even if you didn't have it as an extra element in the vector here, because of the destructuring and use of some-> in this method https://github.com/xtdb/xtdb/blob/e2f51ed99fc2716faa8ad254c0b18166c937b134/core/src/xtdb/tx/conform.clj#L46

richiardiandrea18:10:58

Oh thank you for pointing me to the right place

🙏 1