记录一个优化sql的实际案例 三张表, 表结构, 索引如下: tb_phoneback_apply有user_id, handle_userid 索引 以及一个 status 和 create_time组合索引. 优化前sql SELECT a.id, IFNULL(u.user_name, u.u ...
分类:
数据库 时间:
2020-11-23 11:58:56
阅读次数:
11
sql优化 一、概述 数据库优化主要有两个方向:即安全与性能 show processlist(查看链接session状态) explain(分析查询计划),show index from table(分析索引) 通过执行计划判断,索引问题(有没有、合不合理)或者语句本身问题 show status ...
分类:
数据库 时间:
2020-11-23 11:47:54
阅读次数:
50
一、安装apache 1)安装apache yum install -y httpd 2)启动apache服务 systemctl start httpd 3)查看服务状态(验证服务是否启动) systemctl status httpd (状态为active runging是启动)netstat ...
分类:
Web程序 时间:
2020-11-20 12:04:08
阅读次数:
21
在从数据库中查询 show slave status Slave_SQL_Running: No 1、程序可能在从数据库中进行了写操作 2、也可能是从数据库 机器重启后,事务回滚造成的。 解决方法 在主库中查询 Show master status; 在从库中执行 STOP SLAVE; CHANG ...
分类:
数据库 时间:
2020-11-18 13:27:25
阅读次数:
33
一、目录切换,创建,删除,列出目录下的内容 (1)cd命令 格式:cd [目录] cd ~ :表示当前用户目录 cd / :切换到根目录 cd - :切换到上一次访问的目录 cd .. :切换到上一级目录 cd :缺省当前用户目录 (2)pwd命令:pwd主要用来查看当前所在目录。 (3)创建目录 ...
分类:
系统相关 时间:
2020-11-18 12:23:17
阅读次数:
15
0x00 事件 收到 k8s 其中一台 node 发出的告警,信息如下: Node condition FDPressure is now: True, reason: NodeHasFDPressure [hostname:cn-hangzhou.172.16.2.17,kind:Node,las ...
分类:
其他好文 时间:
2020-11-16 13:27:34
阅读次数:
5
git init:创建/初始化一个的存储库 git init git status:显示工作目录和暂存区的状态 git status git add .:将文件添加到索引/暂存区 git add . git commit:提交更改到存储库 git commit git checkout:切换分支 g ...
分类:
其他好文 时间:
2020-11-11 16:34:31
阅读次数:
8
一、 Git 常用命令速查 git branch 查看本地所有分支git status 查看当前状态 git commit 提交 git branch -a 查看所有的分支git branch -r 查看远程所有分支git commit -am "init" 提交并且加注释 git remote a ...
分类:
其他好文 时间:
2020-11-11 16:03:10
阅读次数:
6
1、新建一个ClientCredentialConsole的控制台应用程序 2、使用第三方客户端调用模式的步骤 1、引入IdentityModel 2、测试连接授权服务器 3、通过client和secret从授权服务器中获取token 4、在bearer中添加token调用api class Pro ...
分类:
其他好文 时间:
2020-11-11 15:45:26
阅读次数:
6
git fetch, git pull, git pull -rebase区别 抄经的和尚 2016-04-20 13:51:32 15084 收藏 9 分类专栏: 技术总结 文章标签: git pull git rebase git merge 1、git fetch vs git pull 都是 ...
分类:
其他好文 时间:
2020-11-10 11:42:33
阅读次数:
29