Skip to content

【性能】大幅提升数组内主表查询性能

Compare
Choose a tag to compare
@TommyLemon TommyLemon released this 31 Jan 16:25
· 120 commits to master since this release

升级 APIJSON 及自身版本为 4.6.0;

APIJSON 4.6.0 更新

https://github.com/Tencent/APIJSON/releases/tag/4.6.0

注意 apijson-framework 4.6.0 仅支持 APIJSON 4.6.0+,不兼容低版本。

兼容性

这个版本重构了几个方法:

1.APIJSONParser.createObjectParser
APIJSONObjectParser createObjectParser(JSONObject request, String parentPath, String name, SQLConfig arrayConfig, boolean isSubquery) throws Exception

删除 1 个参数 String name 新增 2 个参数 boolean isTable, boolean isArrayMainTable 后为

PIJSONObjectParser createObjectParser(JSONObject request, String parentPath, SQLConfig arrayConfig, boolean isSubquery, boolean isTable, boolean isArrayMainTable) throws Exception

2.APIJSONObjectParser 的构造方法
APIJSONObjectParser(HttpSession session, @NotNull JSONObject request, String parentPath, String name, SQLConfig arrayConfig, boolean isSubquery) throws Exception

删除 1 个参数 String name 新增 2 个参数 boolean isTable, boolean isArrayMainTable 后为

APIJSONObjectParser(HttpSession session, @NotNull JSONObject request, String parentPath, SQLConfig arrayConfig, boolean isSubquery, boolean isTable, boolean isArrayMainTable) throws Exception

具体见

ea1c71b