scubers / JRDB

MIT License
507 stars 91 forks source link

批量更新比较多消息时,提示operation has open a transaction already, will not open again #71

Open oYoCoHo opened 3 years ago

oYoCoHo commented 3 years ago

项目代码:J_Update(messages).updateResult; 当messages里面有几百条消息,会报operation has open a transaction already, will not open again,然后会卡UI刷新操作,然后我换单个消息去update就不会延迟UI操作,请问这个问题是什么引起的?是数据库批量操作有最大次数限制吗?

oYoCoHo commented 3 years ago

卡UI的原因找到了,是因为批量操作需要时间,而UI上有数据库操作,等待批量处理完成导致,但J_Update()接口传数组模型进行还是会报operation has open a transaction already, will not open again