notes
Recommendation 5, advantages and disadvantages of selecting and abstract methods of open source tools
Introduction: explain the benefits and drawbacks of open source tools, such as paging pageHeper interceptors, tk automatic generation tools, such as the pros and cons of abstract methods
1, open-source tool
benefits: easy to develop, easy to use using aop paging mode, only the introduction of dependencies, and then PageHelper.startPage (page, size); open tab
drawbacks: for the case of sub-library sub-table such as the use in question, the complex will be determined paging logic depth
mysql Profile:
depth tab common case:
https://www.cnblogs.com/lpfuture/p/5772055.html
https://blog.csdn.net/li772030428/article/details/52839987
recommended books:
https://book.douban.com/ Subject / 23,008,813 /
2, the package is good or bad
on the selected abstract and non-abstract, these tools such as tk, GM mapper, service, controller
benefits:
Code greatly reduced, the development of new modules can be used immediately
following disadvantages:
Corresponding to the excessive packaging, and other newcomers more difficult to understand, there is no guarantee that the team everyone has a corresponding level, or have thought highly of the package, nor excessive packaging
courses Case:
Paging using pageHelper
package common tools, such as caching and other operations
beneficial solution coupled, as a frame buffer switch
Start
Ordinary paging query
when a large amount of data time. This way is slower, related to disk IO performance.
In this way only to read a few data. id is the primary key index