上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 32 下一页
碎片整理: mysql数据一开始是在磁盘上顺序存放的,如果数据表有频繁的update改动,那么数据就会形成很多碎片,拖慢速度和不利于索引; 优化碎片有两种方式: alter table user engine innodb;其实user这个表原先也是innodb的,这句话看上去没有任何意义,但是my Read More
posted @ 2017-11-13 15:23 虚极静笃 Views(207) Comments(0) Diggs(0)
假设有一个千万量级的表,取1到10条数据; 这两条语句查询时间应该在毫秒级完成; 你可能没想到,这条语句执行之间在5s左右; 为什么相差这么大? 可能mysql并没有你想的那么智能,比如你要查询 300w开始后面10条数据;mysql会读取300w加10条这么多的数据,只不过 过滤后返回最后10条而 Read More
posted @ 2017-11-13 15:22 虚极静笃 Views(251) Comments(0) Diggs(0)
首先 索引长度和区分度是相互矛盾的, 索引长度太短,那么区分度就很低,吧索引长度加长,区分度就高,但是索引也是要占内存的,所以我们需要找到一个平衡点; 那么这个平衡点怎么来定? 比如用户表有个字段 username ,要给他加索引,问题是索引长度多少合适? 其实我们知道 百家姓里面有百多个姓 ,但是 Read More
posted @ 2017-11-13 14:45 虚极静笃 Views(577) Comments(0) Diggs(0)
报错java.lang.IllegalArgumentException: Line argument must contain a key and a value. Only one string token was found. at org.apache.shiro.config.Ini$Se Read More
posted @ 2017-11-10 11:45 虚极静笃 Views(272) Comments(0) Diggs(0)
https://www.cnblogs.com/yisheng163/p/4524808.html?utm_source=tuicool Read More
posted @ 2017-11-10 09:55 虚极静笃 Views(128) Comments(0) Diggs(0)
第一种: 第二种: 注意,class可以有多个一样的,但是ID只能有一个。 Read More
posted @ 2017-11-09 22:42 虚极静笃 Views(206) Comments(0) Diggs(0)
posted @ 2017-11-09 22:12 虚极静笃 Views(139) Comments(0) Diggs(0)
以前写controller层的时候都是默认带上 @RequestParam 的, 今天发现不加@RequestParam 也能接收到参数 下面我们来区分一下加与不加的区别 这里有两种写法 [html] view plain copy @RequestMapping("/list") public S Read More
posted @ 2017-11-09 15:17 虚极静笃 Views(407) Comments(0) Diggs(0)
一:通过web获取所在的经纬度(注意这里有的台式机不支持,所以最好用手机访问): 二:通过IP获取所在的省市: 三:通过经纬度获取两点的距离: Read More
posted @ 2017-11-06 13:34 虚极静笃 Views(208) Comments(0) Diggs(0)
图像域: 隐藏域: 注意使用multiple时,需要配合ctrl键进行多选 Read More
posted @ 2017-11-05 22:53 虚极静笃 Views(219) Comments(0) Diggs(0)
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 32 下一页