10 2019 档案

摘要:是不是发现找遍全网也没有找到相关资料? 巧了,我也是,所以我这里来进行一次大胆分析(基本靠猜) 在使用mysql的fulltext索引(全文索引)时,使用explain则会在extra中出现这句提示:Ft_hints: no_ranking 我们先看看mysql官方怎么说: – Also, if a 阅读全文
posted @ 2019-10-13 23:50 肥宅快乐码 阅读(588) 评论(0) 推荐(0)
摘要:原因分析 原因与RedisTemplate源码中的默认序列化方式有关 defaultSerializer = new JdkSerializationRedisSerializer( classLoader != null ? classLoader : this.getClass().getCla 阅读全文
posted @ 2019-10-10 14:19 肥宅快乐码 阅读(677) 评论(0) 推荐(0)
摘要:一些文章写到InnoDB的可重复读避免了“幻读”(phantom read),这个说法并不准确。 做个试验:(以下所有试验要注意存储引擎和隔离级别) 试验一: 如此就出现了幻读,以为表里没有数据,其实数据已经存在了,傻乎乎的提交后,才发现数据冲突了。 试验二: 本事务中第一次读取出一行,做了一次更新 阅读全文
posted @ 2019-10-06 16:06 肥宅快乐码 阅读(365) 评论(0) 推荐(0)
摘要:按序打印 解法一:使用volatile public class FooWithVolatile { private volatile int count; public FooWithVolatile() { } public void first(Runnable printFirst) thr 阅读全文
posted @ 2019-10-05 11:23 肥宅快乐码 阅读(225) 评论(0) 推荐(0)