by Sniffnoy · 7y ago · 0 comments
This question is confused, because it's taking a derived property as fundamental. It takes as fundamental the fact that there are two associated times, rather than as fundamental the fact that there are these particular associated times, of which there happen to be two. If you can't think of a particular third associated time to add, the idea of "going to three" is meaningless on its own.
I think branching/merging itself wouldn't be that hard to implement, at least if you have a versioned index at the very core (disclaimer: I'm also developing an Open Source temporal storage system). But then you'd have checkouts, handling conflicts...
But a different question is whether the system can do something useful for you with first-class time co-ordinates, compared to just stuffing additional timestamps into your data. (something useful being clever indexing, compaction, maybe more?)
SELECT person AS OF t1 FROM upstream AS OF t2
Which reconstructs the view that our upstream source would have constructed for a particular time (t1) from its perspective at a different time (t2). JOIN event_feed_1 AS OF t1 AND event_feed_2 AS OF t2
There’s various reasons you need to offset the comparison of two event feeds, such as their clocks not matching.