is a very powerful feature of MyBatis. It enables programmers write the query using the dynamic
. MyBatis uses a powerful Dynamic
statement. Following are the OGNL based Dynamic
expressions provided by MyBatis when, otherwise trim where, set foreach The if Statement The most common thing to do in dynamic
is conditionally include a part of a where clause. For example −
0 码力 |
5 页 |
69.51 KB
| 1 年前 3
OpenPie. All rights reserved. OpenPie Confidential • Simplify scalar expressions • Expand simple SQL functions in-line • Simplify join tree Early Preprocessing @2024 OpenPie. All rights reserved. OpenPie FUNCTION incr4(int) RETURNS int AS 'SELECT $1 + (2 + 2)' LANGUAGE SQL ; SELECT incr4(a) FROM foo; => SELECT a + 4 FROM foo; Expand Simple SQL Functions in-line @2024 OpenPie. All rights reserved. OpenPie
0 码力 |
37 页 |
851.23 KB
| 1 年前 3
C++20 ❤ SQL
John R Bandela, MDOverview
u
SQL
u
C++ Example
u
Implementation techniques
u fixed_string
u meta_struct
u Parsing compile time strings into meta_structsOverview
v
SQL
v
C++ Example {price_from_user};Avoiding SQL Injection Attacks
SELECT orders.id, name, item, price, discount_code
FROM orders JOIN customers ON customers.id = customerid
WHERE price > ?;SQL Library Options
u
Traditional Lots of information available
u
Vulnerable to sql injection of developer not careful
u
Use dynamic typingDomain Specific Language
u
Use types to encode SQL
u
Looks more like regular C++
u
Typically requires
0 码力 |
46 页 |
775.02 KB
| 5 月前 3
第三届中国 Rust 开发者大会 PromQL Got a BOOST: 用 Rust 重写 Prometheus 的查询 引擎 Ruihang Xia @greptime.com Ruihang GitHub: waynexia Losing hair at Greptime Wanna sleep 10 hrs/day Learn JS every year Healing distributed) SQL and table model WHY REWRITE Target to be the most powerful drop-in replacement PromQL has a good UX for time-series data And it can be better if combine with SQL RIIR, super cooooooool larger dataset ? more computation resources SQL is extended introducing the new concept we have just made ? SQL WHAT ARE BOOSTED SQL T(elemetry)QL PromQL is extended ? multi-field
0 码力 |
39 页 |
6.95 MB
| 1 年前 3
Firebird Null Guide NULL behaviour and pitfalls in Firebird SQL Paul Vinkenoog Version 1.2, 30 June 2020 Table of Contents 1. What is NULL? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 2. NULL support in Firebird SQL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . operations will render the entire expression NULL. This guide explores the behaviour of NULL in Firebird SQL , points out common pitfalls and shows you how to deal safely with expressions that contain NULL or
0 码力 |
69 页 |
479.63 KB
| 1 年前 3
TiDB: HBase分布式事务与SQL 实现 About me ● TiDB & Codis founder ● Golang expert ● Distributed database developer ● Currentlly, CEO and co-founder of PingCAP liuqi@pingcap.com https://github.com/pingcap/tidb say ? “Nothing is hotter than SQL -on-Hadoop, and now SQL -on- HBase is fast approaching equal hotness status” Form HBaseCon 2015 We want more ! SQL + Transaction(ACID) TiDB Features Let’s talk about SQL How does TiDB map SQL to KV User table RowID(hidden column) name email 1 bob bob@gmail.com Inside TiDB,each table, column has an unique ID How to map SQL to KV Let assume
0 码力 |
34 页 |
526.15 KB
| 1 年前 3
第三届中国Rust开发者⼤会 ⽤ egg 孵化你的 SQL 优化器 王润基 RisingWave 内核开发⼯程师 ? Parser Binder Optimizer Executor SQL AST Logical Plan Physical Plan Table Catalog Storage RisingLight 查询 引擎的整体结构 SELECT name, url url FROM t1 JOIN t2 WHERE t1.id = t2.id AND name = ‘Bob’ SQL Logical Plan Physical Plan Projection name, url Filter t1.id = t2.id name = “Bob” Join Scan t1(id, name) Scan t2(id, url) Filter Filter #1 = “Bob” Hash Join #0 = #2 Scan $1.1, $1.2 Scan $2.1, $2.2 Projection #1, #3 ⼀个 SQL 语句优化的例⼦ 基于规则的优化 (RBO) 基于代价的优化 (CBO) 谓词下推 Join Filter A B Join Filter A B Filter Join A Join
0 码力 |
39 页 |
6.48 MB
| 1 年前 3
阿里云 AnalyticDB for PostgreSQL - 打造更简单易用的Cloud SQL Data Warehouse 个人介绍 缪长风 ⚫ 2010年初加入支付宝,负责Oracle RAC和Greenplum数据仓库 ⚫ 有幸参与了Oracle RAC到 Greenplum再到Hadoop以及最终到 ODPS的架构演进工作。 ⚫ 2012年起,转至阿里巴巴大数据团队,负责Hbase/OTS业务支 构筑在线企业数据仓库。 • 应用易开发、适配 支持SQL 2003,部分兼容Oracle语法, 支持PL/SQL 存储过程,OLAP窗口函数,事务及数据库标准隔离级别 完备功能和生态,实现应用快速迁移或适配 • PB级数据秒级响应 MPP水平扩展架构,PB级数据查询 秒级响应;向量化计算,及列存储智能索引,领先传统数据库引擎性能 3x; 新一代SQL 优化器,实现复杂分析语句免调优 • 支持多模分析 库内置100+ 机器学习算法库,实现数据智能探索;高性 能向量检索算法,支持视频/图像检索 以图搜图 AnalyticDB for PostgreSQL 产品架构 协调节点 OSS 分布式云存储服务 SQL Client/BI Tools 协调节点(Master Node) • 接收请求,制定分布式执行计划 计算组(Compute Groups) • 全并行分析计算 • 数据双副本存储 • 定期自动备份
0 码力 |
22 页 |
2.98 MB
| 1 年前 3
全球敏捷运维峰会 广州站 基于ClickHouse+StarRocks 构建支撑千亿级数据量的高可用查询 引擎 演讲人:蔡岳毅 全球敏捷运维峰会 广州站 1. 为什么选择ClickHouse/StarRocks; 2. ClickHouse/StarRocks的高可用架构; 3. 如何合理的应用ClickHouse的优点,StarRocks 如何来补充ClickHouse 的短板; ClickHouse的调优,运维介绍; 5. 应用总结; 全球敏捷运维峰会 广州站 根据实际业务场景需要来选择 1. 不固定的查询 条件,不固定的汇总条件; 2. 数据量日益增量,每天要更新的数据量也不断增大; 3. 业务场景不断增多,涉及面越来越广; 4. 需要保证高可用并秒出; 5. 从Sql ,Es, CrateDB, Kylin,Ingite,MongoDB,Hbase 不断的研究,实践; 全球敏捷运维峰会 支持常用的SQL 语法,写入速度非常快,适用于大量的数据更新; 3. 依赖稀疏索引,列式存储,cpu/内存的充分利用造就了优秀的计算能力, 并且不用考虑左侧原则; 缺点: 1. 不支持事务,没有真正的update/delete; 2. 不支持高并发,可以根据实际情况修改qps相关配置文件; 全球敏捷运维峰会 广州站 StarRocks的特点 优点: 1. 支持标准的SQL 语法,兼容MySql协议;
0 码力 |
15 页 |
1.33 MB
| 1 年前 3