Firebird 2.1 在某些数据库表中存储大量行是否有效?

发布于 2024-12-04 18:34:30 字数 272 浏览 4 评论 0原文

我的应用程序不断收到一个需要存储的非常小的事件,我在想哪种是处理它的最佳方法。该事件的表将如下所示:

EVENT
id
timestamp
some_data (integer)
fk_to_some_holder_table

如果我继续将每个事件存储为一行,对于使用某种 blob 压缩/处理的实现是否会存在一些缺点?还是我在这里太过分了?

我正在使用火鸟 2.1。如果需要,我可以升级到 Firebird 2.5。

提前致谢。

My application keeps receiving a really small event that it needs to store and I was thinking which is the best way to handle it. The table for this event would be something like this:

EVENT
id
timestamp
some_data (integer)
fk_to_some_holder_table

If I keep storing each event as a row, will there be some disadvantage against an implementation with some kind of blob compression/treatment? Or am I going too far here?

I'm using Firebird 2.1. If needed, I could upgrade to Firebird 2.5.

Thanks in advance.

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

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

发布评论

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

评论(2

中性美 2024-12-11 18:34:30

我确信您最好使用“传统的基于行的记录”:

  • 您想要查询记录,对吧?查询 BLOB 既困难又缓慢;
  • 由于您的记录大小非常小,因此您无法压缩它们,使用大多数压缩算法,结果可能会大于单独字段所需的大小;

根据“Firebird的技术限制是什么?”一文,一张表的最大大小为32TB或16G行。

我认为在这种特定情况下 2.1 和 2.5 之间没有任何区别,但由于其他/一般改进,我会使用 2.5。

I'm sure you're better off with "traditional row based record":

  • you want to query the records, right? Quering BLOBs is hard and slow;
  • since your record size is so small you wouldn't be able to compress them, with most compression algorithms the result would probably be bigger than the separate fields require;

According to the "What are the technical limits of Firebird?" article maximum size of one table is 32TB or 16G rows.

I don't think there is any difference between 2.1 and 2.5 in this specific case, but I'd use 2.5 because of other/general improvements.

压抑⊿情绪 2024-12-11 18:34:30

存储为行比 blob 更有意义,出于已经提到的原因

,我现在坚持使用 2.1,2.5 有太多我不喜欢的错误

storing as a row makes much better sense than blobs, for the reasons already mentioned

I'd stick with 2.1 for now, 2.5 has too many bugs for my liking

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