摘要: 索引优化 ,b-tree假设某个表有一个联合索引(c1,c2,c3,c4) 以下 只能使用该联合索引的c1,c2,c3部分A. where c1 = x and c2 = x and c4>x and c3 = xB. where c1 = x and c2 = x and c4=x order b 阅读全文
posted @ 2017-02-06 11:37 睡着的糖葫芦 阅读(770) 评论(0) 推荐(0) 编辑
摘要: 原文地址: https://www.jianshu.com/p/c6b5901b28ca 1. 简单的定义:一个<没有宽度>位置,这个位置满足一定条件<断言> 2. 为了方便理解,看下面例子: 正则<用于密码设置>:^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,20 阅读全文
posted @ 2023-02-16 12:39 睡着的糖葫芦 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 在vim 中输入 :set mouse=r 就行了,还不行的话 :set mouse=v 阅读全文
posted @ 2020-08-21 15:32 睡着的糖葫芦 阅读(1048) 评论(0) 推荐(0) 编辑
摘要: 配置php-fpm服务到systemctl 1. 打开php-fpm.conf sudo vim /usr/local/php/etc/php-fpm.conf 2.找到以下内容并修改 pid = /var/run/php-fpm.pid 3.新建php-fpm服务文件 sudo vim /usr/ 阅读全文
posted @ 2020-07-31 13:15 睡着的糖葫芦 阅读(1902) 评论(0) 推荐(0) 编辑
摘要: go mod 使用 原文地址: https://juejin.im/post/5c8e503a6fb9a070d878184a 阅读全文
posted @ 2019-12-24 14:15 睡着的糖葫芦 阅读(245) 评论(1) 推荐(0) 编辑
摘要: 原文地址:https://www.cnblogs.com/raichen/p/5227449.html 参考资料: Generated Columns in MySQL 5.7.5 MySQL 5.7新特性之Generated Column(函数索引) MySQL 5.7原生JSON格式支持 Gen 阅读全文
posted @ 2019-10-11 17:02 睡着的糖葫芦 阅读(1824) 评论(1) 推荐(0) 编辑
摘要: 原文地址: https://blog.csdn.net/heatdeath/article/details/79833492 当执行update操作是,并且字段有ON UPDATE CURRENT_TIMESTAMP属性。则字段无论值有没有变化,它的值也会跟着更新为当前UPDATE操作时的时间。 参 阅读全文
posted @ 2019-10-11 09:48 睡着的糖葫芦 阅读(8203) 评论(0) 推荐(0) 编辑
摘要: 原文地址:https://www.cnblogs.com/blankqdb/archive/2012/11/03/blank_qdb.html 1. UNSIGNED UNSIGNED属性就是将数字类型无符号化,与C、C++这些程序语言中的unsigned含义相同。例如,INT的类型范围是-2 14 阅读全文
posted @ 2019-10-10 14:42 睡着的糖葫芦 阅读(1165) 评论(0) 推荐(0) 编辑
摘要: 开启mysql慢查询日志 修改/etc/mysql/my.cnf配置文件,添加: [mysqld]slow_query_log = onslow_query_log_file = /var/lib/mysql/slow.loglong_query_time = 2 参数详解: 配置结束之后,需要重启 阅读全文
posted @ 2019-10-09 11:12 睡着的糖葫芦 阅读(1149) 评论(0) 推荐(0) 编辑
摘要: 原文地址: https://www.cnblogs.com/zklidd/p/6149120.html 0、故事引入 无意中看到了ES的mapping中有store字段,作为一个ES菜鸡,有必要对这个字段进行下笔记。 1、_source _source字段我在们进行检索时相当重要, ES默认检索只会 阅读全文
posted @ 2019-09-23 16:53 睡着的糖葫芦 阅读(739) 评论(0) 推荐(0) 编辑
摘要: #记录聚合查询方法 from elasticsearch import Elasticsearches = Elasticsearch(['xx.xx.xx.xx:9200'])#获取最小的年龄res = es.search(index='test6', body = { "query": { "m 阅读全文
posted @ 2019-09-23 16:34 睡着的糖葫芦 阅读(3698) 评论(1) 推荐(0) 编辑