mysql 调优首先需要找到那些有问题的SQL语句。 怎么找到这些语句呢? mysql 提供了很方便的功能。 1.慢日志 在my.cnf 文件中,增加如下配置 log-error = /var/lib/mysql/mysql-error.log #记录没有索引使用的查询。 log-queries-n ...
分类:
数据库 时间:
2019-04-26 00:48:15
阅读次数:
205
Can you answer these queries? Time Limit: 1 Sec Memory Limit: 256 MB 题目连接 http://acm.hdu.edu.cn/showproblem.php?pid=5195 Description A lot of battlesh ...
分类:
其他好文 时间:
2019-04-23 21:20:55
阅读次数:
167
慢查询日志 log_query_time 查询时间超过这个值则会出现在慢查询日志中,默认值是10 log_slow_queries 是否开启慢查询 log_queries_not_using_indexes ,如果运行的sql语句没有使用索引,则mysql数据库同样会将这条sql语句记录到慢查询日志 ...
分类:
数据库 时间:
2019-04-22 16:31:06
阅读次数:
133
http://numbbbbb.github.io/the-swift-programming-language-in-chinese/ http://numbbbbb.github.io/the-swift-programming-language-in-chinese/ ...
分类:
编程语言 时间:
2019-04-22 14:00:46
阅读次数:
664
错误原因: 如API中所述 API: A table of data representing a database result set, which is usually generated by executing a statement that queries the database. ...
分类:
数据库 时间:
2019-04-20 18:21:15
阅读次数:
149
KIT305/KIT607Assignment 2Implementation and Evaluation of a Mobile ApplicationJournal and Mood Tracking ApplicationDue DateThe assignment has three as ...
分类:
其他好文 时间:
2019-04-19 19:44:58
阅读次数:
94
P3455 [POI2007]ZAP Queries 最简单的求gcd==d的个数,直接分块瞎搞。 cpp include using namespace std; define ll long long define MAXN 50000 int mu[MAXN+5]; int pri[MAXN+ ...
分类:
其他好文 时间:
2019-04-18 01:02:00
阅读次数:
195
正则表达式 正则表达式 正则表达式,又称规则表达式。(英语:Regular Expression,在代码中常简写为regex、regexp或RE),计算机科学的一个概念。正则表达式通常被用来检索、替换那些符合某个模式(规则)的文本。 https://www.jb51.net/tools/zhengz ...
分类:
其他好文 时间:
2019-04-17 22:11:21
阅读次数:
192
题目传送门:HDU - 4027 Can you answer these queries? 题目大意: 存在n艘敌军战舰,每艘战舰都有能量值,我军存在一种秘密武器,每次能够将在该区间内的所 有战舰的能量值开方,现在指挥官想要知道武器的效果,需要你告诉他该区间内敌军战舰的能 量值之和 分析: 该题对 ...
分类:
其他好文 时间:
2019-04-16 01:23:17
阅读次数:
145
AGC014 "链接" A Cookie Exchanges 发现两个数之间的差会逐渐缩小,所以只要不是三个数都相同,那么log次左右一定会得到答案 B Unplanned Queries 直接建一个图出来,求是否每个联通块存在欧拉回路,只需要判点度就好 cpp include define fi ...
分类:
其他好文 时间:
2019-04-14 14:04:25
阅读次数:
98