您现在的位置是:首页 > 文章详情

BeetlSQL 3.23.6 发布,枚举优化

日期:2023-07-31点击:96
  • SQLManagerExtends 增加API,自定义枚举转化方式
  • 修复上个版本Oralce12 翻页Bug
  • 性能测试增加最新的Mybatis-Flex
  • 修复开发模式下,某些SQL无法自动检测变化的BUG

maven

 <dependency> <groupId>com.ibeetl</groupId> <artifactId>beetlsql</artifactId> <version>3.23.6-RELEASE</version> </dependency>

 

      BeetlSQL 自主研发自 2015 年,目标是提供开发高效,维护高效,运行高效的数据访问框架,它适用范围广,定制性强,写起数据库访问代码特别顺滑,不亚于 MyBatis。你不想写 SQL 也好,或者想更好地写 SQL 也好,BeetlSQL 都能满足这要求,目前支持的数据库如下

  • 传统数据库:MySQL (包括支持 MySQL 协议的各种数据库), MariaDB ,Oralce ,Postgres (包括支持 Postgres 协议的各种数据库), DB2 , SQL Server ,H2 , SQLite , Derby ,神通,达梦,华为高斯,人大金仓,PolarDB,GBase8s,GreatSQL 等
  • 大数据:HBase,ClickHouse,Cassandar,Hive,GreenPlum
  • 物联网时序数据库:Machbase,TD-Engine,IotDB
  • SQL 查询引擎:Drill,Presto,Druid
  • 内存数据库:ignite,CouchBase
     

   如下测试使用了最新的 Hibernate,MyBatis,包含了常用的 orm 操作: 多表联合查询映射(complexMapping),直接执行 sql (executeJdbc), 执行模板 sql (executeTemplate), 执行文件中的模板 sql ( File), 内置插入(insert),Query 调用链 , 翻页查询 (pageQuery), 内置主键查询 (selectById), one2Many 自动关联查询

 enchmark Mode Cnt Score Error Units JMHMain.beetlsqlComplexMapping thrpt 5 185.381 ± 99.297 ops/ms JMHMain.beetlsqlExecuteJdbc thrpt 5 429.785 ± 71.210 ops/ms JMHMain.beetlsqlExecuteTemplate thrpt 5 365.348 ± 82.971 ops/ms JMHMain.beetlsqlFile thrpt 5 415.442 ± 70.495 ops/ms JMHMain.beetlsqlInsert thrpt 5 210.112 ± 83.903 ops/ms JMHMain.beetlsqlLambdaQuery thrpt 5 230.837 ± 9.323 ops/ms JMHMain.beetlsqlOne2Many thrpt 5 90.168 ± 17.047 ops/ms JMHMain.beetlsqlPageQuery thrpt 5 153.189 ± 59.639 ops/ms JMHMain.beetlsqlSelectById thrpt 5 363.174 ± 21.525 ops/ms JMHMain.flexInsert thrpt 5 152.944 ± 87.644 ops/ms JMHMain.flexPageQuery thrpt 5 75.542 ± 102.908 ops/ms JMHMain.flexSelectById thrpt 5 169.640 ± 119.488 ops/ms JMHMain.jdbcExecuteJdbc thrpt 5 904.236 ± 169.185 ops/ms JMHMain.jdbcInsert thrpt 5 261.621 ± 277.527 ops/ms JMHMain.jdbcSelectById thrpt 5 856.954 ± 916.774 ops/ms JMHMain.jpaExecuteJdbc thrpt 5 73.955 ± 47.686 ops/ms JMHMain.jpaExecuteTemplate thrpt 5 70.500 ± 94.767 ops/ms JMHMain.jpaInsert thrpt 5 51.598 ± 87.631 ops/ms JMHMain.jpaOne2Many thrpt 5 63.601 ± 66.750 ops/ms JMHMain.jpaPageQuery thrpt 5 88.380 ± 29.287 ops/ms JMHMain.jpaSelectById thrpt 5 288.006 ± 40.840 ops/ms JMHMain.mybatisComplexMapping thrpt 5 93.896 ± 31.784 ops/ms JMHMain.mybatisExecuteTemplate thrpt 5 188.542 ± 124.748 ops/ms JMHMain.mybatisFile thrpt 5 142.734 ± 79.871 ops/ms JMHMain.mybatisInsert thrpt 5 122.523 ± 41.568 ops/ms JMHMain.mybatisLambdaQuery thrpt 5 9.207 ± 8.565 ops/ms JMHMain.mybatisPageQuery thrpt 5 57.076 ± 49.255 ops/ms JMHMain.mybatisSelectById thrpt 5 203.027 ± 162.668 ops/ms JMHMain.woodExecuteJdbc thrpt 5 323.917 ± 69.851 ops/ms JMHMain.woodExecuteTemplate thrpt 5 358.144 ± 24.423 ops/ms JMHMain.woodFile thrpt 5 404.271 ± 109.444 ops/ms JMHMain.woodInsert thrpt 5 176.356 ± 121.517 ops/ms JMHMain.woodLambdaQuery thrpt 5 359.186 ± 84.702 ops/ms JMHMain.woodPageQuery thrpt 5 208.736 ± 46.900 ops/ms JMHMain.woodSelectById thrpt 5 335.235 ± 59.312 ops/ms

阅读文档 源码和例子 在线体验 多库使用 性能测试

原文链接:https://www.oschina.net/news/251660/beetlsql-3-23-6-released
关注公众号

低调大师中文资讯倾力打造互联网数据资讯、行业资源、电子商务、移动互联网、网络营销平台。

持续更新报道IT业界、互联网、市场资讯、驱动更新,是最及时权威的产业资讯及硬件资讯报道平台。

转载内容版权归作者及来源网站所有,本站原创内容转载请注明来源。

文章评论

共有0条评论来说两句吧...

文章二维码

扫描即可查看该文章

点击排行

推荐阅读

最新文章