上一页 1 2 3 4 5 6 ··· 16 下一页
摘要: sudo vim /etc/hosts 199.232.28.133 raw.githubusercontent.com 阅读全文
posted @ 2020-05-07 21:38 宇的季节 阅读(2275) 评论(0) 推荐(0) 编辑
摘要: MySQL如何创建一个好索引?创建索引的5条建议 过滤效率高的放前面 对于一个多列索引,它的存储顺序是先按第一列进行比较,然后是第二列,第三列...这样。查询时,如果第一列能够排除的越多,那么后面列需要判断的行数就越少,效率越高。 关于如何判断哪个列的过滤效率更高,可以通过选择性计算来决定。例如我们 阅读全文
posted @ 2020-04-28 23:49 宇的季节 阅读(2312) 评论(0) 推荐(5) 编辑
摘要: 为什么MySQL要用B+树?聊聊B+树与硬盘的前世今生 在上一节,我们聊到数据库为了让我们的查询加速,通过索引方式对数据进行冗余并排序,这样我们在使用时就可以在排好序的数据里进行快速的二分查找,使得查询效率指数提升。但是我在结尾同样提到一个问题,就是内存大小一般是很有限的,不可能把一个表所有的数据都 阅读全文
posted @ 2020-04-12 19:13 宇的季节 阅读(742) 评论(0) 推荐(5) 编辑
摘要: 场景复现,一个索引提高600倍查询速度? 首先准备一张books表 create table books( id int not null primary key auto_increment, name varchar(255) not null, author varchar(255) not 阅读全文
posted @ 2020-04-05 21:09 宇的季节 阅读(746) 评论(2) 推荐(2) 编辑
摘要: 如果mysql连接报错Lost connection to MySQL server at 'sending authentication information', system error: 32 一种可能的原因是系统打开文件数过多 mac系统默认是256个,如果数据库打开文件过多,会因为系统限 阅读全文
posted @ 2020-02-26 19:29 宇的季节 阅读(2103) 评论(0) 推荐(0) 编辑
摘要: To jump between words and start/end of lines in iTerm2 follow these steps: iTerm2 -> Preferences (⌘ + ,) Open the “Keys” tab Add the following Global 阅读全文
posted @ 2020-02-06 12:06 宇的季节 阅读(2462) 评论(0) 推荐(0) 编辑
摘要: deepin terminal 输入如下命令 阅读全文
posted @ 2020-01-02 20:14 宇的季节 阅读(1186) 评论(0) 推荐(0) 编辑
摘要: 调整最大文件监控数量 添加参数 运行使配置生效 https://unix.stackexchange.com/questions/444998/how-to-set-and-understand-fs-notify-max-user-watches 阅读全文
posted @ 2019-11-08 14:54 宇的季节 阅读(624) 评论(0) 推荐(0) 编辑
摘要: google访问助手下载链接 1.插件安装失败? 在安装chrome离线扩展程序时,报错信息如下: 2.解决方案 第一步:新建一个标签页,在地址栏输入:chrome://flags/#extensions-on-chrome-urls并按回车键 将值改为enabled 将值改为enabled 重启c 阅读全文
posted @ 2019-09-23 13:24 宇的季节 阅读(33) 评论(0) 推荐(0) 编辑
摘要: I know my project's dependencies are installed under node_modules directory. But when I do require('lodash'), how does Node know which file to load? " 阅读全文
posted @ 2019-08-25 15:35 宇的季节 阅读(271) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 16 下一页