十亿的三倍有多大?

发布于 2024-10-01 18:29:15 字数 141 浏览 0 评论 0原文

是否有可能将三元组存储的大小与 RDBMS 的粗略等价相关联?或者,这会根据存储的数据类型(在我的例子中是 CMS 的文本内容)而变化太大吗?

我正在尝试了解 800MB 数据库与 17 亿三重存储的比较。我已经做好了被告知这是一个愚蠢问题的充分准备。

Is it possible to relate the size of a triple store to a rough equivalence in terms of a RDBMS? Or would this vary too much based on the type of data stored (in my case text content of a CMS)

I'm trying to get my head round how a 800MB database compares to a 1.7Billion triple triple store. I'm fully prepared to be told this is a daft question.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

还给你自由 2024-10-08 18:29:16

这是一个很难回答的问题,但并不愚蠢。

一般来说,您可以从表格大小转换为三重计数,例如:

triples = columns - 1 * rows

这有点过于笼统,但它应该给您一些想法,例如,如果您有一个像这样的表格:

prikey val1   val2
a      1      2
b      3      4
c      5      6

如果您熟悉,那将是 6 个三重使用 NTtriples 语法,三元组将是:

<a> <val1> 1 .
<a> <val2> 2 .
<b> <val1> 3 .
<b> <val2> 4 .
<c> <val1> 5 .
<c> <val2> 6 .

在更复杂的情况下(例如复合主键),它可能或多或少,但它应该给您一些想法。

It's a difficult to answer question but it's not silly.

broadly speaking you can convert from from tables size to triple count with something like:

triples = columns - 1 * rows

It's a bit of an overgeneralisation, but it should give you some idea, e.g. if you have a table like:

prikey val1   val2
a      1      2
b      3      4
c      5      6

That would be 6 triples, if you're familiar with NTriples syntax, the triples would be:

<a> <val1> 1 .
<a> <val2> 2 .
<b> <val1> 3 .
<b> <val2> 4 .
<c> <val1> 5 .
<c> <val2> 6 .

In more complex sitatuions (like compound pirmary keys) it might be more or less than that, but it should give you some idea.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文