跳至主要内容

博文

目前显示的是 四月, 2018的博文

Windows 10 Version 1709 的累积更新失败

笔记本的Windows 10自动更新要求重启,但是重启之后提示说更新安装失败。再次尝试,重启后还是如此,于是陷入了这个魔咒无法脱身。 后来查了Google,发现都不如Windows自带的链接管用,根据KB的号码找文档,可以下载到相应的独立更新安装包。 另外还参考了一个[微软的官方客服回答](https://answers.microsoft.com/en-us/windows/forum/windows_10-windows_install/getting-error-0x80070bc2-doing-cumulative-update/24e80681-eb22-4439-8677-638fce437186?page=7)执行了如下cmd操作: ``` SC config wuauserv start=auto SC config bits start=auto SC config cryptsvc start=auto SC config trustedinstaller start=auto ```

Dev's Ranting - Hibernate batch processing

Recently I have been working on a performance issue of a small application. It utilizes Hibernate to delete a lot of entities from database. Unfortunately the application died throwing a `OutOfMemoryError`. After discussing with my colleagues and reading some posts about how Hibernate works in batch mode, it appears to me that Hibernate's batch mode (`order_inserts` and/or `order_updates`) may played some role in this issue. Ref: * [Why is Hibernate batching / order_inserts / order_updates disabled by default](https://stackoverflow.com/questions/27755461/why-is-hibernate-batching-order-inserts-order-updates-disabled-by-default) * [Hibernate Batch Processing - Why you may not be using it. (Even if you think you are](https://abramsm.wordpress.com/2008/04/23/hibernate-batch-processing-why-you-may-not-be-using-it-even-if-you-think-you-are/)