当前位置:网站首页>用对场景,事半功倍!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源创计划”,欢迎正在阅读的你也加入,一起分享。
边栏推荐
- 用栈实现队列、用队列实现栈(C语言_leetcode_232+225)
- Collation and review of knowledge points of Microcomputer Principle and interface technology - pure manual
- B站被骂上了热搜。。
- App automation testing Kaiyuan platform appium runner
- ArrayList capacity expansion mechanism and thread safety
- uni-app实现广告滚动条
- 【剑指 Offer】55 - II. 平衡二叉树
- 【Flask】Flask启程与实现一个基于Flask的最小应用程序
- QT社团管理系统
- 【剑指Offer】54. 二叉搜索树的第k大节点
猜你喜欢

Error:Kotlin: Module was compiled with an incompatible version of Kotlin. The binary version of its
![[flask] flask starts and implements a minimal application based on flask](/img/45/77df241c85c4916914a37bb78275a5.png)
[flask] flask starts and implements a minimal application based on flask

龙蜥社区开源 coolbpf,BPF 程序开发效率提升百倍

"National defense seven sons" funding soared, with Tsinghua reaching 36.2 billion yuan, ranking second with 10.1 billion yuan. The 2022 budget of national colleges and universities was made public

B站被骂上了热搜。。

A new book by teacher Zhang Yujin of Tsinghua University: 2D vision system and image technology (five copies will be sent at the end of the article)
![[anwangbei 2021] Rev WP](/img/98/ea5c241e2b8f3ae4c76e1c75c9e0d1.png)
[anwangbei 2021] Rev WP

Enter the top six! Boyun's sales ranking in China's cloud management software market continues to rise

【NLP】预训练模型——GPT1
![[IOT completion. Part 2] stm32+ smart cloud aiot+ laboratory security monitoring system](/img/b2/e8f81ecda6f5f4fc65501aaf9f13cf.gif)
[IOT completion. Part 2] stm32+ smart cloud aiot+ laboratory security monitoring system
随机推荐
力扣解法汇总241-为运算表达式设计优先级
How can we protect our passwords?
【IoT毕设.上】STM32+机智云AIoT+实验室安全监控系统
【NLP】预训练模型——GPT1
QT社团管理系统
Oracle-数据库对象的使用
Kongsong (Xintong Institute) - cloud security capacity building and trend in the digital era
Self cultivation of open source programmers who contributed tens of millions of lines of code to shardingsphere and later became CEO
小程序- view中多个text换行
8款最佳实践,保护你的 IaC 安全!
Dragon lizard community open source coolbpf, BPF program development efficiency increased 100 times
El form item regular verification
2022. Let me take you from getting started to mastering jetpack architecture components - lifecycle
【剑指 Offer】55 - II. 平衡二叉树
Interpretation of R & D effectiveness measurement framework
leetcode 322. Coin change (medium)
光环效应——谁说头上有光的就算英雄
算网融合赋能行业转型,移动云点亮数智未来新路标
Several models of IO blocking, non blocking, IO multiplexing, signal driven and asynchronous IO
leetcode622. Design cycle queue (C language)