当前位置:网站首页>用对场景,事半功倍!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源创计划”,欢迎正在阅读的你也加入,一起分享。
边栏推荐
- SWT/ANR问题--当发送ANR/SWT时候如何打开binder trace(BinderTraces)
- What "hard core innovations" does Intel have in the first half of 2022? Just look at this picture!
- 进入前六!博云在中国云管理软件市场销量排行持续上升
- QT学习管理系统
- C语言课程设计题目
- 2022年PMP项目管理考试敏捷知识点(6)
- 研发效能度量框架解读
- So programmers make so much money doing private work? It's really delicious
- Several models of IO blocking, non blocking, IO multiplexing, signal driven and asynchronous IO
- 04-Redis源码数据结构之字典
猜你喜欢

进入前六!博云在中国云管理软件市场销量排行持续上升

QT community management system

Use the npoi package of net core 6 C to read excel Pictures in xlsx cells and stored to the specified server

开源者的自我修养|为 ShardingSphere 贡献了千万行代码的程序员,后来当了 CEO

Play with mongodb - build a mongodb cluster

Dragon lizard community open source coolbpf, BPF program development efficiency increased 100 times

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

被裁三個月,面試到處碰壁,心態已經開始崩了

Use lambda function URL + cloudfront to realize S3 image back to source

佩服,阿里女程序卧底 500 多个黑产群……
随机推荐
Journal MySQL
"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
用栈实现队列、用队列实现栈(C语言_leetcode_232+225)
学会使用LiveData和ViewModel,我相信会让你在写业务时变得轻松
So programmers make so much money doing private work? It's really delicious
Fiori applications are shared through the enhancement of adaptation project
3.4 data query in introduction to database system - select (single table query, connection query, nested query, set query, multi table query)
2022. Let me take you from getting started to mastering jetpack architecture components - lifecycle
Station B was scolded on the hot search..
Chen Yu (Aqua) - Safety - & gt; Cloud Security - & gt; Multicloud security
Scheme of printing statistical information in log
3.4 《数据库系统概论》之数据查询—SELECT(单表查询、连接查询、嵌套查询、集合查询、多表查询)
JVM有哪些类加载机制?
开源者的自我修养|为 ShardingSphere 贡献了千万行代码的程序员,后来当了 CEO
What "hard core innovations" does Intel have in the first half of 2022? Just look at this picture!
Solution to 0xc000007b error when running the game [easy to understand]
C语言课程设计题目
【剑指 Offer】55 - II. 平衡二叉树
1.8 new features list
[IOT completion. Part 2] stm32+ smart cloud aiot+ laboratory security monitoring system