## 最新
* 本次均使用了最新的ORM版本。
* 將數據庫字段從2個字段增加到20個字段
* 增加getAll性能測試
* 增加mybatis-flex,easyquery的orm工具
*
JDBC作為基準測試,直接使用jdbc+無反射,是最快的。在不考慮JDBC的情況下,BeetlSQL性能比MyBatis和JPA都好很多
另外BeetlSQL支持全部9個場景的測試
> 有些dao并不支持一些特性,所以并未出現在下面列表,比如JDBC不支持自動翻頁查詢,MyBatis不支持one2Many等。
>
> 測試機器在這幾年中使用了不同的機器,本次測試使用的Mac i7. 測試維度是ops/ms,每毫秒的調用次數。越高越好(Score,Error這里表示誤差)。
```
Benchmark Mode Cnt Score Error Units
JMHMain.beetlsqlComplexMapping thrpt 5 255.458 ± 60.277 ops/ms
JMHMain.beetlsqlExecuteJdbc thrpt 5 310.825 ± 25.901 ops/ms
JMHMain.beetlsqlExecuteTemplate thrpt 5 272.615 ± 10.883 ops/ms
JMHMain.beetlsqlFile thrpt 5 265.682 ± 15.083 ops/ms
JMHMain.beetlsqlGetAll thrpt 5 13.869 ± 0.431 ops/ms
JMHMain.beetlsqlInsert thrpt 5 129.510 ± 73.525 ops/ms
JMHMain.beetlsqlLambdaQuery thrpt 5 194.066 ± 20.773 ops/ms
JMHMain.beetlsqlOne2Many thrpt 5 174.328 ± 18.469 ops/ms
JMHMain.beetlsqlPageQuery thrpt 5 153.528 ± 21.530 ops/ms
JMHMain.beetlsqlSelectById thrpt 5 261.294 ± 10.722 ops/ms
JMHMain.easyQueryComplexMapping thrpt 5 65.675 ± 24.593 ops/ms
JMHMain.easyQueryExecuteJdbc thrpt 5 247.011 ± 10.968 ops/ms
JMHMain.easyQueryGetAll thrpt 5 16.568 ± 1.000 ops/ms
JMHMain.easyQueryInsert thrpt 5 97.206 ± 13.522 ops/ms
JMHMain.easyQueryLambdaQuery thrpt 5 118.802 ± 8.587 ops/ms
JMHMain.easyQueryOne2Many thrpt 5 92.302 ± 11.150 ops/ms
JMHMain.easyQueryPageQuery thrpt 5 76.613 ± 6.511 ops/ms
JMHMain.easyQuerySelectById thrpt 5 112.608 ± 15.603 ops/ms
JMHMain.flexGetAll thrpt 5 2.512 ± 0.300 ops/ms
JMHMain.flexInsert thrpt 5 99.749 ± 13.610 ops/ms
JMHMain.flexPageQuery thrpt 5 34.197 ± 2.840 ops/ms
JMHMain.flexSelectById thrpt 5 69.624 ± 3.205 ops/ms
JMHMain.jdbcExecuteJdbc thrpt 5 678.643 ± 22.680 ops/ms
JMHMain.jdbcGetAll thrpt 5 40.712 ± 1.240 ops/ms
JMHMain.jdbcInsert thrpt 5 248.417 ± 157.517 ops/ms
JMHMain.jdbcSelectById thrpt 5 670.334 ± 41.391 ops/ms
JMHMain.jpaExecuteJdbc thrpt 5 64.450 ± 8.940 ops/ms
JMHMain.jpaExecuteTemplate thrpt 5 66.666 ± 6.162 ops/ms
JMHMain.jpaGetAll thrpt 5 5.061 ± 0.736 ops/ms
JMHMain.jpaInsert thrpt 5 59.919 ± 21.168 ops/ms
JMHMain.jpaOne2Many thrpt 5 102.370 ± 5.603 ops/ms
JMHMain.jpaPageQuery thrpt 5 59.366 ± 12.308 ops/ms
JMHMain.jpaSelectById thrpt 5 61.110 ± 11.092 ops/ms
JMHMain.mybatisComplexMapping thrpt 5 107.533 ± 21.488 ops/ms
JMHMain.mybatisExecuteTemplate thrpt 5 43.625 ± 3.022 ops/ms
JMHMain.mybatisFile thrpt 5 39.576 ± 6.700 ops/ms
JMHMain.mybatisGetAll thrpt 5 5.970 ± 0.584 ops/ms
JMHMain.mybatisInsert thrpt 5 42.409 ± 4.339 ops/ms
JMHMain.mybatisLambdaQuery thrpt 5 23.981 ± 6.069 ops/ms
JMHMain.mybatisPageQuery thrpt 5 16.313 ± 3.207 ops/ms
JMHMain.mybatisSelectById thrpt 5 44.626 ± 4.049 ops/ms
JMHMain.woodExecuteJdbc thrpt 5 124.015 ± 3.367 ops/ms
JMHMain.woodExecuteTemplate thrpt 5 123.251 ± 7.691 ops/ms
JMHMain.woodFile thrpt 5 124.088 ± 11.738 ops/ms
JMHMain.woodGetAll thrpt 5 1.882 ± 0.148 ops/ms
JMHMain.woodInsert thrpt 5 107.541 ± 9.479 ops/ms
JMHMain.woodLambdaQuery thrpt 5 121.923 ± 11.266 ops/ms
JMHMain.woodPageQuery thrpt 5 231.230 ± 16.197 ops/ms
JMHMain.woodSelectById thrpt 5 124.842 ± 10.048 ops/ms
```
- BeetlSQL 3 指南
- 數據訪問框架
- 適合用戶
- 編譯源碼
- 直接看代碼
- 閑大賦介紹
- BeetlSQL3 特點
- 數據庫訪問工具的痛點
- BeetlSQL3 例子
- 基礎例子
- 結果集映射
- 翻頁查詢
- 演示like,batchUpdate,in 操作
- 自動fetch
- 多數據庫
- 代碼生成框架
- 安裝BeetlSQL
- 直接安裝
- 框架集成
- 編譯源碼
- 快速開始
- 環境準備
- 環境搭建
- 使用BeetlSQL
- 按照主鍵查尋
- 更新
- 按照模板查詢
- 執行SQL
- 執行模板SQL
- 使用Query
- 使用Mapper
- 使用模板文件
- SQLManager
- 內置語句
- 內置查詢API
- template查詢
- 更新操作
- 執行SQL
- 執行模板SQL
- 把SQL放到文件里
- 翻頁查詢
- SQLResult
- Stream查詢
- 存儲過程調用
- NameConversion(重要)
- DBStyle
- Inerceptor
- SQLManagerExtend
- 強制使用數據源
- Mapper
- 實現Mapper
- @Sql
- @Update @BatchUpdate
- @Template
- 參數名稱
- 參數返回值
- 執行SQL文件
- 翻頁查詢
- @SqlProvider
- @SpringData
- @SubQuery
- @InheritMapper
- @Call
- StreamData
- Default Method
- 定義自己的BaseMapper
- 限制Java代碼中SQL長度
- 數據模型
- POJO
- 不嚴格的POJO
- 交集(重要)
- @Table 注解
- @Column 注解
- 主鍵
- RowMapper
- ResultSetMapper
- Json配置映射
- Json自動映射
- XML支持
- 自動Fetch
- AttributeConvert
- BeanConvert
- 枚舉
- 混合模型
- Map模型
- 動態模型
- 模型其他注解
- 安全擴展注解
- BeetlSql 單表查詢工具Query
- Query使用方式和風格介紹
- Query主要操作簡介
- 查詢器獲取
- SELECT簡單的條件查詢
- 復雜的條件查詢
- 查詢字段智能處理
- 健壯的變量
- 自定義實現
- INSERT操作
- UPDATE操作
- DELETE操作
- single查詢和unique
- COUNT查詢
- GROUP分組查詢和Having子句
- 分頁查詢
- ORDER BY 排序
- page分頁查詢
- 方法調用順序
- Markdown文件
- Beetl 入門
- 定界符號
- 變量
- 算數表達式
- 邏輯表達式
- 控制語句
- 訪問變量屬性
- 判斷對象非空(重要)
- 調用方法
- 自定義方法
- 內置方法
- 標簽功能
- 附錄
- Idea 插件
- 代碼生成
- 多庫使用
- 業務主從庫
- 主從庫延遲問題
- 多個業務庫
- 合并多個業務庫 1
- 合并多個業務庫 2
- 單表多租戶
- 每個租戶一個表
- 多庫多租戶
- 使用ShardingSphere
- Saga(試驗)
- 關于Saga的一些認識
- 關于隔離性
- BeetlSQL Saga
- SagaMapper
- Saga 多庫事務實現
- Saga 微服務 實現
- 配置 Saga Server
- Swagger
- BeetlSQL 性能
- 測試方法
- 最新
- 2021-11-21
- 2020-9-28
- Spring 快速開始
- 環境準備
- 環境搭建
- SpringBoot 快速開始
- 環境準備
- 環境搭建
- 擴展BeetlSQL3
- 完整配置
- BaseMapper定制
- 代碼生成
- SQLExecutor定制
- 第三方
- MetadataManager
- JFinal集成
- ExecuteContext
- 參考ACT
- 數據庫表到Java對象
- Solon
- NameConversion
- ViewType
- RowMapper
- ResultSetMapper
- AttributeConvert
- BeanConvert
- Fetch
- 代碼生成
- 擴展BeetlSQL3
- BaseMapper定制
- SQLExecutor定制
- MetadataManager
- ExecuteContext
- 數據庫表到Java對象
- NameConversion
- ViewType
- RowMapper
- ResultSetMapper
- AttributeConvert
- BeanConvert
- Fetch
- 代碼生成
- BeetlSQL 多數據庫支持
- 多庫之間的不同
- 跨庫支持實現
- DBStyle
- MySqlStyle 例子
- H2Style例子
- ClickHouseStyle例子
- HBaseStyle例子
- DruidStyle例子
- MetadataManager
- BeanProcessor
- 與BeetlSQL2的區別
- 使用區別