TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Bitemporal History

64 pointsby r4umabout 4 years ago

8 comments

lmilcinabout 4 years ago
As we are working on complex trading systems it is frequently necessary to correct past record and then be able to make consistent reports based on &quot;as of&quot; date. This means answering questions like &quot;I want to get the state of this population of trades as it was yesterday at 5 pm but based on our knowledge yesterday at 10 pm.&quot;<p>Pretty fun actually when you have billions of these records:)
jacobobryantabout 4 years ago
Shout out to Crux (<a href="https:&#x2F;&#x2F;opencrux.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;opencrux.com&#x2F;</a>), a bitemporal database. I&#x27;ve been using it for a year now and it&#x27;s fantastic.
评论 #26744895 未加载
Hettieabout 4 years ago
Check out our framework for bitemporlity: <a href="https:&#x2F;&#x2F;github.com&#x2F;scalegenius&#x2F;pg_bitemporal" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;scalegenius&#x2F;pg_bitemporal</a> We use it in production for 5 years. I am ready to answer any performance&#x2F;indexing and other questions
helsinkiabout 4 years ago
I have not read the article, but I have written a bi-temporal ORM, and I find it to be such a useful concept in practice. One of the primary benefits is optimistic locking. You can say goodbye to explicitly locking during a db transaction.
评论 #26744736 未加载
thelittlenagabout 4 years ago
I ran across this notion for the first time when I started a job in finance a few years back and as an interview question they asked me about it. I hadn&#x27;t heard of the notion and so afterwards tried to find some good resources online to read up about it.<p>What I found was not great. So glad to see this idea getting a good write up.
评论 #26745083 未加载
nyanpasu64about 4 years ago
Reminds me of rebasing Git branches in order to clean up commit histories, or rewriting Git repositories in order to change usernames&#x2F;emails stored inside.<p>I just hope that whatever systems get created (bitemporal history, version control, etc.) have support for &quot;replacing&quot; previous usernames, or deleting events prior to a specific &quot;record time&quot; and replacing them with newer understandings of history. Doing so in Git (a more-or-less append-only system) results in multiple histories which diverge at the moment of the change.
amboo7about 4 years ago
In simpler cases, you can see the problem as purely functional data structures.
评论 #26744535 未加载
评论 #26744337 未加载
jkaabout 4 years ago
Related to bitemporality, I&#x27;d be curious to hear whether anyone has experience with the Temporal Tables[1] extension in PostgreSQL?<p>[1] - <a href="https:&#x2F;&#x2F;github.com&#x2F;arkhipov&#x2F;temporal_tables" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;arkhipov&#x2F;temporal_tables</a>
评论 #26752355 未加载