时间序列数据库和关系数据库的区别 [英] Difference between time-series database and relational database

查看:77
本文介绍了时间序列数据库和关系数据库的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经阅读了一些关于时间序列数据库的概念和一些关于这两者之间差异的答案,但我仍然无法理解这些差异.

I have read some concept about time-series database and some answers about the differences between these 2 but I can't still get my head around these differences.

数据是如何写入和存储到磁盘的,这导致时序数据库和 rdbms 之间存在差异?

How data is written and stored to disk that make the differences between time-series database and rdbms?

时间序列数据库优于 rdbms 和 VICE VERSA 的最佳用例是什么?我的意思是使时序数据库比 rdbms 提供出色性能的案例,我也想知道 rdbms 比时序数据库更适合选择的案例.

What are the best use cases for time-series database over rdbms and VICE VERSA?. I mean the cases that make the time-series database provide outstanding performance over rdbms, also I want to know the cases that rdbms is a more suitable choice than time-series database.

推荐答案

时序数据库优势:

  1. 每秒插入 100K+ 到 1M+ 次
  2. 每个时间/值元组存储的字节数:2-10 vs 30-100 (rdbms)
  3. 内置时间序列转换和聚合函数
  4. 为具有内置分片和索引的时间序列数组优化架构

关系型数据库优势:

  1. 完整的 SQL 支持
  2. 能够存储时间序列以外的任何数据
  3. 广泛的 DBA 资源和工具

通过编写您自己的应用程序代码和存储过程,您几乎可以完成 TSDB 提供的所有工作,但您最终可能会得到一个更慢且对底层计算和存储资源要求更高的实现.

By writing your own application code and stored procedures you can accomplish almost everything that TSDBs provide, but you may end up with an implementation that is slower and more demanding in terms of underlying compute and storage resources.

出于所有实际目的并在参考完整性方面做出一些妥协,您可以让两个数据库同时运行:将扩展的应用程序架构存储在关系数据库中,将时间序列存储在 TSDB 中.

For all practical purposes and with some compromises to referential integrity, you can have both databases run concurrently: store your extended app schema in relational database and time-series in TSDB.

这篇关于时间序列数据库和关系数据库的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆