TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

It's about time – Approaching bitemporality

52 点作者 lichtenberger超过 2 年前

6 条评论

raydiatian超过 2 年前
<i>It looks like I might get flagged for this, please show me some love Dang, I’m only trying to be helpful to the author.</i><p>&gt; What is bitemporality?<p>You have this as a header but I’m really bummed out that the article doesn’t have a sentence that begins with “bitemporality is..” I think some illustrations to accompany your ideas might go a long way as well, as I still have no idea what bitemporality is in this scenario, although it sounds cool.<p>&gt; The “bi” in bitemporal database hints at the fact, that for the use case described above we have two different times we’d like to track: On one axis we have the validity of the data.<p>I genuinely don’t mean to be rude, only to provide constructive feedback. This section kind of broke my flow, because you’re implying that validity is a form of time: “ two different times we’d like to track: On one axis we have the validity.” Is that intended?
评论 #33463455 未加载
评论 #33463587 未加载
评论 #33463365 未加载
daurnimator超过 2 年前
Note that Postgres has built in range types which makes much of this cleaner. See <a href="https:&#x2F;&#x2F;www.postgresql.org&#x2F;docs&#x2F;15&#x2F;rangetypes.html#RANGETYPES-BUILTIN" rel="nofollow">https:&#x2F;&#x2F;www.postgresql.org&#x2F;docs&#x2F;15&#x2F;rangetypes.html#RANGETYPE...</a>
评论 #33464670 未加载
layer8超过 2 年前
One important caveat when implementing this manually (as opposed to using a temporal DBMS) is foreign-key constraints, which have to be emulated with check constraints, and not all DBMSs support cross-table check constraints.<p>Furthermore, even with such constraints in place, I believe it can still happen that concurrent modifications of parent and child rows may result in an inconsistent state, because the reads e.g. on the child table for the constraint triggered by an update&#x2F;insert on the parent table may see an outdated state that is in the process of being updated by a concurrent transaction on the child table, and vice versa.<p>It is very difficult, if not impossible, to implement airtight constraint checks for bitemporal data across tables if the DBMS doesn’t have native support for temporal tables.
denton-scratch超过 2 年前
It&#x27;s About Time is the name of the second album by Tonto&#x27;s Expanding Head Band: Malcolm Cecil and Robert Margouleff (and the biggest custom Moog synthesizer you ever saw).
laerus超过 2 年前
Isn&#x27;t this the use case for event sourcing?
评论 #33464377 未加载
评论 #33464471 未加载
评论 #33464508 未加载
_boffin_超过 2 年前
If anyone is looking for a good book on this subject, check out <a href="https:&#x2F;&#x2F;www.amazon.com&#x2F;Developing-Time-Oriented-Database-Applications-Management&#x2F;dp&#x2F;1558604367" rel="nofollow">https:&#x2F;&#x2F;www.amazon.com&#x2F;Developing-Time-Oriented-Database-App...</a>