当前位置:网站首页>The new generation of domestic ORM framework sagacity sqltoy-5.1.25 release
The new generation of domestic ORM framework sagacity sqltoy-5.1.25 release
2022-07-04 15:52:00 【Open source China Information】
Open source address :
- github: https://github.com/sagframe/sagacity-sqltoy
- gitee: https://gitee.com/sagacity/sagacity-sqltoy
- idea plug-in unit ( But directly in idea Retrieve installation in ): https://github.com/threefish/sqltoy-idea-plugins
Update the content
1、findByQuery(QueryExecutor query) result QueryResult increase List getFirstColumn(boolean distinct) Method , It is convenient to extract the single column values of the result set to form a one-dimensional array
2、sql file filters add clone Method
<sql id="qstart_clone_param_case"><filters> <!-- It is applicable when the front end has only single date , Construct a endDate Form date range filter --> <clone param="beginDate" as-param="endDate"/> <to-date params="endDate" increment-unit="days" format="yyyy-MM-dd" increment-time="1"/></filters><value><![CDATA[ select * from sqltoy_trans_info_15d t where t.trans_date>=:beginDate #[and t.trans_date<:endDate]]]></value></sql>sqltoy The key advantage of :
//------------------ understand sqltoy The key advantage of : -------------------------------------------------------------------------------------------*///1、 The simplest and most intuitive sql Compiling mode ( It's not just query statements ), Using the pre-processing regularization method of conditional parameters , Give Way sql The statement part is highly consistent with the client //2、sql Comments are supported in ( Evaded the right hint The influence of characteristics , know hint Do you ? search oracle hint), And dynamic update loading , It is convenient for the management of the whole process of development and later maintenance //3、 Support cache translation and reverse cache condition retrieval ( Match the name to the exact key), Realization sql Simplify and greatly improve performance //4、 Support fast paging and paging optimization , Achieve the highest level of paging optimization , It also takes into account cte Multiple with as Optimization support in case //5、 Support parallel query //6、 Completely eradicate sql Injection problem //7、 Support row column conversion 、 Group summary and average 、 On a year-on-year basis , It's about solving complex problems with algorithms sql, It's also solved sql Cross database issues //8、 Support automatic adaptation of reserved words //9、 Support cross database function self adaptation , Thus, it is very helpful for a set of code to adapt to a variety of databases and facilitate the commercialization , such as oracle Of nvl, When sql stay mysql The environment is automatically replaced with ifnull//10、 Support sub database and sub table //11、 Provides access top、 take random Record 、 Tree table structure construction and recursive query support 、updateFetch A single interaction completes practical functions such as modification and query //12、sqltoy Of update、save、saveAll、load etc. crud Operation circumvents jpa The defects of , See update(entity,String...forceUpdateProps) and updateFetch//13、 It provides a very humanized condition processing : Exclusive conditions 、 Addition and subtraction of date conditions and extraction at the end of the month and the beginning of the month //14、 The query result date is provided 、 Number formatting 、 Safe desensitization treatment , Make complicated things simple , Greatly simplify sql Or the secondary processing of results //-----------------------------------------------------------------------------------*/sqltoy Feature introduction :
- sqltoy The core construction idea of

- sqltoy Comparison of mybatis(plus) and fluent mybatis The core of : Query statement writing 、 Readability 、 Maintainability


- Objectification crud It's the foundation , but sqltoy Targeted improvements :update、updateSaveFetch、updateFetch etc.

- sqltoy Cache translation , Greatly reduce table Association and simplify sql, Improve your query performance at the geometric level

- Ultimate paging , It also helps you achieve a significant improvement in query performance
- Quick Pagination :@fast() Realize the first retrieval of single page data and then associated query , Greatly increase the speed
- Paging optimizer :page-optimize Let the paging query change from twice to 1.3~1.5 Time ( Using cache to realize the total number of records with the same query conditions, there is no need to query repeatedly in a certain period
- sqltoy The process of paging to get the total record is not simple select count(1) from ( original sql); It's intelligent judgment whether it becomes :select count(1) from 'from After statement ', And automatically eliminate the outermost order by
- sqltoy Support parallel query :parallel="true", Query the total number of records and single page data at the same time , Significantly improved performance

- Convenient cross database statistical calculation : Data rotation

- Convenient cross database statistical calculation : Infinite grouping statistics ( Including summary and average )

- Convenient cross database statistical calculation : Year on year and month on month

边栏推荐
猜你喜欢
Detailed explanation of MySQL composite index (multi column index) use and optimization cases

每周招聘|高级DBA年薪49+,机会越多,成功越近!
Redis sentinel mode realizes one master, two slave and three Sentinels

力扣刷题01(反转链表+滑动窗口+LRU缓存机制)

Unity script lifecycle day02

AI做题水平已超过CS博士?
![[North Asia data recovery] data recovery case of database data loss caused by HP DL380 server RAID disk failure](/img/f0/12dd17e840a23dc9ded379e1fd7454.jpg)
[North Asia data recovery] data recovery case of database data loss caused by HP DL380 server RAID disk failure

大神详解开源 BUFF 增益攻略丨直播

這幾年爆火的智能物聯網(AIoT),到底前景如何?

Unity动画Animation Day05
随机推荐
Stew in disorder
Redis shares four cache modes
Neuf tendances et priorités du DPI en 2022
Explore mongodb - mongodb compass installation, configuration and usage introduction | mongodb GUI
JS tile data lookup leaf node
%F format character
Case sharing | integrated construction of data operation and maintenance in the financial industry
.Net 应用考虑x64生成
在芯片高度集成的今天,绝大多数都是CMOS器件
In today's highly integrated chips, most of them are CMOS devices
MySQL learning notes - data type (numeric type)
MySQL federated primary key_ MySQL creates a federated primary key [easy to understand]
Lombok使用引发的血案
LeetCode 1184. Distance between bus stops -- vector clockwise and counterclockwise
go-zero微服务实战系列(九、极致优化秒杀性能)
Understand the context in go language in an article
文本挖掘工具的介绍[通俗易懂]
Force button brush question 01 (reverse linked list + sliding window +lru cache mechanism)
Unity脚本API—Transform 变换
Building intelligent gray-scale data system from 0 to 1: Taking vivo game center as an example