问题: 运维报告某一台数据库,数据流量太大,具体数值不清楚。超过其他正常数据库的流量。 问题分析: 数据流量过大,猜测是一是数据库访问量增加(可能性不大,基本排除),二是某些项目的sql查询了单表的大量数据。有可能是查询条件筛选访问过大。 公司项目: dotnet4.5、entityframe wo ...
分类:
数据库 时间:
2020-03-30 19:13:03
阅读次数:
108
一、map() import pandas as pd import numpy as np df = pd.DataFrame({'key1' : ['a', 'a', 'b', 'b', 'a'], 'key2' : ['one', 'two', 'one', 'two', 'one'], 'd ...
分类:
移动开发 时间:
2020-03-30 13:15:36
阅读次数:
97
1 函数参数 函数的实参和形参个数可以不等,之所以会这样,原因是 ECMAScript 中的参数在内部是用一个数组来表示的。函数接收到的始终都是这个数组,而不关心数组中包含哪些参数(如果有参数的话)。如果实参个数大于形参个数,多余的实参不传递值,但是在arguments中可以访问;如果形参个数大于实 ...
分类:
移动开发 时间:
2020-03-30 09:23:53
阅读次数:
77
Ansible简介 Ansible Logo Ansible概述 Ansible是新兴的自动化运维工具,基于Python开发,集合了众多运维工具(puppet、cfengine、chef、func、fabric)的优点,实现了批量系统配置、批量程序部署、批量运行命令等功能。 无需安装客户端。 Ans ...
分类:
其他好文 时间:
2020-03-28 19:44:05
阅读次数:
87
在之前的文章中,我们一起学习过了官网上容器扩展点相关的知识,包括FactoryBean,BeanFactroyPostProcessor,BeanPostProcessor,其中BeanPostProcessor还剩一个很重要的知识点没有介绍,就是相关的BeanPostProcessor中的方法的执 ...
分类:
编程语言 时间:
2020-03-27 16:57:53
阅读次数:
73
let amounts = []; let index = []; let maxAmountFeeProp = index[amounts.indexOf(Math.max.apply(Math, amounts))]; ...
分类:
其他好文 时间:
2020-03-25 18:45:21
阅读次数:
63
手写实现如下: Function.prototype.myApply = fucntion(context) { if(typeof this !== 'function') { throw new TypeError('not a function!') } context = context | ...
分类:
移动开发 时间:
2020-03-25 10:58:17
阅读次数:
162
Kubernetes dashboard 是Kubernetes集群的基于Web的通用UI。 它允许用户管理群集中运行的应用程序并对其进行故障排除,以及管理群集本身。 部署 如果你的网络很好且可以访问国外网,那你可以直接运行下面命令部署。 kubectl apply -f https://raw.g ...
分类:
Web程序 时间:
2020-03-24 18:56:44
阅读次数:
110
查询MSSQL慢查询: SELECT TOP 20 TEXT AS 'SQL Statement',last_execution_time AS 'Last Execution Time' ,(total_logical_reads + total_physical_reads + total_lo ...
分类:
数据库 时间:
2020-03-24 15:42:46
阅读次数:
179
Function.prototype.mycall = function() { const [context,...args] = arguments context = context||window context.__proto__.fn = this context.fn(...args) ...
分类:
移动开发 时间:
2020-03-24 12:32:48
阅读次数:
69