当前位置:网站首页>用对场景,事半功倍!TDengine 的窗口查询功能及使用场景全介绍
用对场景,事半功倍!TDengine 的窗口查询功能及使用场景全介绍
2022-07-01 13:59:00 【涛思数据TDengine】
什么是窗口查询?
TDengine 提供的
三种窗口查询能力详解
SELECT function_list FROM tb_name [WHERE where_condition] [SESSION(ts_col, tol_val)][STATE_WINDOW(col)] [INTERVAL(interval [, offset]) [SLIDING sliding]] [FILL({NONE | VALUE | PREV | NULL | LINEAR | NEXT})]窗口查询,从超级表的查询语法为:
SELECT function_list FROM stb_name [WHERE where_condition] [INTERVAL(interval [, offset]) [SLIDING sliding]] [FILL({NONE | VALUE | PREV | NULL | LINEAR | NEXT})] [GROUP BY tags]1. 等间隔窗口(interval)




2. 状态窗口(state_window)


3. 会话窗口(session)


总结
如果开发者可以灵活运用 TDengine 这样的 Database 提供的时序数据窗口划分能力,结合业务场景,选择合适的窗口划分函数来将相关计算负荷下沉到数据库层,则能大大提升系统响应性能、减少负载开销,起到事半功倍的效果。
点击阅读原文,了解体验 TDengine!
本文分享自微信公众号 - TDengine(taosdata_news)。
如有侵权,请联系 [email protected] 删除。
本文参与“OSC源创计划”,欢迎正在阅读的你也加入,一起分享。
边栏推荐
- 光環效應——誰說頭上有光的就算英雄
- Use the npoi package of net core 6 C to read excel Pictures in xlsx cells and stored to the specified server
- 面试题目总结(1) https中间人攻击,ConcurrentHashMap的原理 ,serialVersionUID常量,redis单线程,
- So programmers make so much money doing private work? It's really delicious
- QT community management system
- 刘对(火线安全)-多云环境的风险发现
- 原来程序员搞私活这么赚钱?真的太香了
- uni-app实现广告滚动条
- Learning to use livedata and ViewModel will make it easier for you to write business
- 2022 · 让我带你Jetpack架构组件从入门到精通 — Lifecycle
猜你喜欢

Realize queue with stack and stack with queue (C language \leetcode\u 232+225)

用栈实现队列、用队列实现栈(C语言_leetcode_232+225)

6年技术迭代,阿里全球化出海&合规的挑战和探索

那个很努力的学生,高考失败了……别慌!你还有一次逆袭机会!

SAP intelligent robot process automation (IRPA) solution sharing

QT community management system

Introduction to distributed transactions (Seata)

原来程序员搞私活这么赚钱?真的太香了

Six years of technology iteration, challenges and exploration of Alibaba's globalization and compliance

How will the surging tide of digitalization overturn the future?
随机推荐
How will the surging tide of digitalization overturn the future?
洞态在某互联⽹⾦融科技企业的最佳落地实践
[241. Design priority for operation expression]
清华章毓晋老师新书:2D视觉系统和图像技术(文末送5本)
Listen in the network
3.4 data query in introduction to database system - select (single table query, connection query, nested query, set query, multi table query)
04 redis source code data structure dictionary
Fiori applications are shared through the enhancement of adaptation project
那个很努力的学生,高考失败了……别慌!你还有一次逆袭机会!
Texstudio tutorial
2022. Let me take you from getting started to mastering jetpack architecture components - lifecycle
Play with mongodb - build a mongodb cluster
2. Sensor size "recommended collection"
MySQL日志
Leetcode第一题:两数之和(3种语言)
Error:Kotlin: Module was compiled with an incompatible version of Kotlin. The binary version of its
力扣解法汇总241-为运算表达式设计优先级
Arthas use
SWT/ANR问题--如何捕获性能的trace
【NLP】预训练模型——GPT1