SWQXDBA
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)上  而这个beanMap.containsKey会交给net.sf.cglib.beans.FixedKeySet类执行  而FixedKeySet并没有重写contains方法,所以其实际上会被交给AbstractCollection的contains方法执行比较。  导致了o(n)的复杂度。 解决办法: 想个办法把FixedKeySet类替换掉  经过测试 替换后的导出时间由7秒降低到了4秒左右