交错表术语

Interlaced tables terminology

我正在寻找正确的术语来描述以下存储 tables 的方式。考虑 Table 1 (user_id, name, year) 和 Table 2 (price, timestamp)。每个 table 都存储了一些特定数据,但按插入顺序存储在一个 CSV 文件中,例如:

10,mary,2005
12,john,2018
1350,1569668115
38,lucy,2009
1400,1569669115

尽管 table 不相关,但它们以这种方式存储在一个文件中。有这个名字吗?我尝试搜索 interlaced,但没有找到相关结果,interleavednested tables, 这意味着完全不同。

注:实际文件包含一列,区分行:

T1,10,mary,2005
T1,12,john,2018
T2,1350,1569668115
T1,38,lucy,2009
T2,1400,1569669115

"interleaved" 是我的第一个猜测,但我认为没有标准术语。也许你可以在问题

中再添加一些 detail/context

我倾向于将 "interlaced" 与显示和图像联系起来,Google 表示:

(of a video image) scanned in such a way that alternate lines form one sequence which is followed by the other lines in a second sequence.

所以与数据没有太大关系。而 "nested" 暗示 inner/outer parent/child 关系,而您的表似乎不相关(或者至少您不给 link 记录让路)。

对于 "interleaved" 我得到:

mix (digital signals) by alternating between them.

这似乎很合适,但我看到 cockroachdb 中使用了您可能认为不合适的术语。

就是说,鉴于您在 CSV 文件中看到它,这种用法似乎更像是 "logging",可能是出于安全或审计目的。一些数据库也这样做,请参阅 WAL in Postgres 和许多其他高可用性系统中存在类似的东西,但可能不是 CSV 文件。