当前位置:网站首页>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

边栏推荐
- Unity预制件Prefab Day04
- Width accuracy
- Case sharing | integrated construction of data operation and maintenance in the financial industry
- Unity脚本常用API Day03
- [North Asia data recovery] data recovery case of database data loss caused by HP DL380 server RAID disk failure
- 文本挖掘工具的介绍[通俗易懂]
- Go zero micro service practical series (IX. ultimate optimization of seckill performance)
- JS tile data lookup leaf node
- [book club issue 13] packaging format and coding format of audio files
- After the eruption of Tonga volcano, we analyzed the global volcanic distribution and found that the area with the most volcanoes is here!
猜你喜欢
go-zero微服务实战系列(九、极致优化秒杀性能)
开源人张亮的 17 年成长路线,热爱才能坚持
数据湖治理:优势、挑战和入门
Halcon knowledge: NCC_ Model template matching
I plan to teach myself some programming and want to work as a part-time programmer. I want to ask which programmer has a simple part-time platform list and doesn't investigate the degree of the receiv
Scientific research cartoon | what else to do after connecting with the subjects?
压力、焦虑还是抑郁? 正确诊断再治疗
Redis的4种缓存模式分享
.Net 应用考虑x64生成
Preliminary exploration of flask: WSGI
随机推荐
Decimal, exponential
基于MAX31865的温度控制系统
小数,指数
Selenium element interaction
Introduction of text mining tools [easy to understand]
干货 | fMRI标准报告指南新鲜出炉啦,快来涨知识吧
MySQL~MySQL给已有的数据表添加自增ID
Review of Weibo hot search in 2021 and analysis of hot search in the beginning of the year
Numpy notes
Temperature control system based on max31865
Solve the error of JSON module in PHP compilation and installation under CentOS 6.3
Deep learning network regularization
直播预告 | PostgreSQL 内核解读系列第二讲:PostgreSQL 体系结构
MySQL学习笔记——数据类型(数值类型)
Building intelligent gray-scale data system from 0 to 1: Taking vivo game center as an example
暑期复习,一定要避免踩这些坑!
Audio and video technology development weekly | 252
The four most common errors when using pytorch
Width accuracy
Unity animation day05