SWQXDBA

Results 4 issues of SWQXDBA

- [y] Verify that this issue is related to Torch and not a Torch plugin or the vanilla game - [y] Ensure that the issue is reproducible for testing (provide...

- [Y] Verify that this issue is related to Torch and not a Torch plugin or the vanilla game - [Y] Ensure that the issue is reproducible for testing (provide...

# 1 activeRecord增加forUpdate方法 用于排它锁 ``` SystemUser.create() .where(SystemUser::getUsername).eq("123") .forUpdate(); ``` # 2 补全eq like等操作符中对QueryModel类型单独的重载 避免忘记toQueryWrapper时出错 目前只有in有这个重载 ``` /** * {@code IN(value)} */ public R in(QueryModel queryModel) { return in(queryModel, true); }...

版本2.2.20 我在导出一个5万行的excel时,有20个列,用时在7秒左右。 通过火焰图分析,发现有大量时间(1.6秒左右)卡在了 addJavaObjectToExcel方法的beanMap.containsKey(name)上 ![image](https://github.com/alibaba/easyexcel/assets/76103126/5fe8084b-b241-435f-87ec-1facfb1169cf) 而这个beanMap.containsKey会交给net.sf.cglib.beans.FixedKeySet类执行 ![image](https://github.com/alibaba/easyexcel/assets/76103126/7d4f195e-348d-4573-af89-2de592e81422) 而FixedKeySet并没有重写contains方法,所以其实际上会被交给AbstractCollection的contains方法执行比较。 ![image](https://github.com/alibaba/easyexcel/assets/76103126/4acb49e1-246c-4898-b3d6-59acdb2d1de6) 导致了o(n)的复杂度。 解决办法: 想个办法把FixedKeySet类替换掉 ![image](https://github.com/alibaba/easyexcel/assets/76103126/bf1e3344-0be0-4aa4-bd10-d456cbfb1885) 经过测试 替换后的导出时间由7秒降低到了4秒左右

suggest