2020年5月10日
摘要: 今天百度一些资料偶然发现SimpleDateFormat居然不是线程安全的,平时使用时根本没有考虑,万幸今天发现了这个问题,得把写的代码得翻出来整理一下了。 一般我们使用的SimpleDateFormat一般是这样写的: public void method() { ... DateFormat d 阅读全文
posted @ 2020-05-10 20:31 玄同太子 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 通常我们的分页分页查询时这样的: select * from table_name limit m,n; 当表的数据很大(几百万或更多)时,分页查询会随m的值变大而时间边长: select * from bd_user limit 10000, 20; #耗时0.003秒 select * from 阅读全文
posted @ 2020-05-10 19:02 玄同太子 阅读(2680) 评论(3) 推荐(0) 编辑