当前位置:网站首页>用对场景,事半功倍!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源创计划”,欢迎正在阅读的你也加入,一起分享。
边栏推荐
- 开源实习经验分享:openEuler软件包加固测试
- Chen Yu (Aqua) - Safety - & gt; Cloud Security - & gt; Multicloud security
- 【修复版】仿我爱看电影网站模板/海洋CMS影视系统模板
- Après avoir été licencié pendant trois mois, l'entrevue s'est effondrée et l'état d'esprit a commencé à s'effondrer.
- QT learning management system
- 【 剑指 Offer】55 - I. 二叉树的深度
- 【241. 为运算表达式设计优先级】
- Summary of 20 practical typescript single line codes
- Use the npoi package of net core 6 C to read excel Pictures in xlsx cells and stored to the specified server
- 2022上半年英特尔有哪些“硬核创新”?看这张图就知道了!
猜你喜欢

一文读懂TDengine的窗口查询功能

QT社团管理系统

leetcode622.设计循环队列(C语言)

【NLP】预训练模型——GPT1

04 redis source code data structure dictionary

Interpretation of R & D effectiveness measurement framework

Understand the window query function of tdengine in one article

被裁三个月,面试到处碰壁,心态已经开始崩了

Build your own website (21)

刘对(火线安全)-多云环境的风险发现
随机推荐
Build your own website (21)
Applet - multiple text line breaks in view
App自动化测试开元平台Appium-runner
Dragon lizard community open source coolbpf, BPF program development efficiency increased 100 times
1.8 new features list
MySQL日志
About fossage 2.0 "meta force meta universe system development logic scheme (details)
Basic operation of queue (implemented in C language)
JVM有哪些类加载机制?
Summary of 20 practical typescript single line codes
SAP intelligent robot process automation (IRPA) solution sharing
盲盒NFT数字藏品平台系统开发(搭建源码)
[安网杯 2021] REV WP
Listen in the network
Etcd summary mechanism and usage scenarios
进入前六!博云在中国云管理软件市场销量排行持续上升
ArrayList capacity expansion mechanism and thread safety
QT community management system
Yan Rong looks at how to formulate a multi cloud strategy in the era of hybrid cloud
uni-app实现广告滚动条