一、查询优化 1,mysql的调优大纲 慢查询的开启并捕获 explain+慢SQL分析 show profile查询SQL在Mysql服务器里面的执行细节和生命周期情况 SQL数据库服务器的参数调优 2,小表驱动大表 mysql的join实现原理是,以驱动表的数据为基础,“嵌套循环”去被驱动表匹配 ...
分类:
数据库 时间:
2021-01-20 12:07:20
阅读次数:
0
一、概述 使用kubectl apply或者create命令创建/更新部署后,其pod需要时间完成创建/更新。如果在CI中不等待所有pod更新完成,下一步流程很有可能使用更新前的环境。 二、使用方法 根据实际情况kubectl rollout status命令,能够正确的获取rollout stat ...
分类:
Web程序 时间:
2021-01-19 12:14:29
阅读次数:
0
前言 使用 django-rest-framework 序列化的时候,返回的日期时间格式带T,查看不方便,如update_time=2021-01-18T08:56:47.756971。 需格式化改成我们平常用的日期时间格式 update_time=2021-01-18 08:56:47 问题描述 ...
分类:
编程语言 时间:
2021-01-19 11:45:09
阅读次数:
0
1.先将MySQL停止、 命令:systemctl stop mysqld #停掉MySQL 命令:systemctl status mysqld #查看状态 2.然后跳过授权表启动MySQL服务程序 这一步主要利用mysqld的 --skip-grant-tables选项 修改my.cnf配置,添 ...
分类:
数据库 时间:
2021-01-18 11:38:24
阅读次数:
0
$data = Db::name('admin_user')->where('status', 1)->whereIn('id', function($query) use($structure_id) { $query->name('admin_structure_duty')->where([ ...
分类:
数据库 时间:
2021-01-18 11:34:45
阅读次数:
0
原答案地址:https://zhuanlan.zhihu.com/p/23804247 最开始,先看一下,为什么这里的this输出结果并不一样? var obj = { foo: function (){ console.log("this-->>", this) } } var bar = obj ...
分类:
其他好文 时间:
2021-01-18 10:43:22
阅读次数:
0
从CentOS 7开始,使用了一个新的命令timedatectl timedatectl 命令 (1) 读取时间 timedatectl //等同于 timedatectl status (2) 设置时间 timedatectl set-time "YYYY-MM-DD HH:MM:SS" (3) ...
分类:
其他好文 时间:
2021-01-14 10:51:48
阅读次数:
0
Error running 'Unnamed': Address localhost:8080 is already in use HTTP Status 500 – Internal Server Error Error running 'Tomcat 9.0.0.M17': Address lo ...
分类:
其他好文 时间:
2021-01-14 10:47:23
阅读次数:
0
nvGRAPH三角形计数示例 #include “ stdlib.h” #include“ inttypes.h” #include“ stdio.h” #include“ nvgraph.h” #define check( a )\ {\ nvgraphStatus_t status =(a); ...
分类:
其他好文 时间:
2021-01-13 11:23:13
阅读次数:
0
开启慢查询Profiling Profiling级别说明 0:关闭,不收集任何数据。 1:收集慢查询数据,默认是100毫秒。 2:收集所有数据 1、通过修改配置文件开启Profiling 修改启动mongo.conf,插入以下代码 #开启慢查询,200毫秒的记录 profile = 1 slowms ...
分类:
数据库 时间:
2021-01-13 11:20:42
阅读次数:
0