Fork me on GitHub
#xtdb
<
2022-03-20
>
Hukka07:03:02

Is there a way to get the transaction history for an entity, for cases where the valid time is overlapping (or even the same) (`entity-history` works when the valid times are distinct)?

Hukka07:03:00

I suppose I can open the tx-log and "manually" find all occurrences of the given eid

refset12:03:16

There's a with-corrections? option for this (if I understand correctly) - did you take a look at that already?

Hukka18:03:57

Ah, no. I didn't understand what corrections meant, so didn't see that as relevant. Thanks!

πŸ™ 1
neural22:03:59

The return values of a query is always a PersistentHashSet ?

refset12:03:41

Hi @UCE6QCEQP that's correct, since Datalog always works in terms of sets of result tuples (even if there's only one result tuple). Were you expecting something different?

neural14:03:26

Hey @U899JBRPF! I understand reading the docs that the return values was a list.

πŸ‘ 1
refset14:03:57

Ah, so perhaps that definition is a bit too simplistic then - it could possibly say instead: > The find clause of a query specifies the bound values to be returned in the query result tuples. Tuples are represented as lists. The query result is a deduplicated set of tuples, unless :limit or :order-by is specified, or open-q is used, in which case the query result is a sequence of tuples.

neural15:03:46

MUUUUCH better! thanks!

☺️ 1