隐藏显示:hide() show()toggle()淡入淡出:fadeIn() fadeOut() fadeToggle() fadeTo("slow",0.5)滑动:slideDown() slideUp() slideToggle()动画:animate() 语法:$(选择器).animate....
分类:
Web程序 时间:
2015-03-07 13:38:37
阅读次数:
157
有些时候当程序做了更新,数据库负载突然上来,或者并发翻了几倍。这个时候如果用show full processlist; 根本看不到完全的sql。怎么才能看是哪些sql导致的呢,在网上查了资料,有一下几种方法。1.记录慢日志:long_query_time = 1log_slow_queries =...
分类:
数据库 时间:
2015-02-27 13:13:59
阅读次数:
141
mysql增加慢日志 vim ?my.conf # 超过1s的查询会记录到日志文件中 long_query_time=1 log-slow-queries=/data/var/mysql_slow.log # 记录没用索引的查询 log-queries-not-using-indexes 用mysqlsla工具和查看慢日...
分类:
数据库 时间:
2015-02-26 18:48:00
阅读次数:
180
慢查询日志
1.当查询超过一定时间没有返回结果的时候,才会记录进慢查询日志。
2.慢查询日志可以帮助DBA找出执行效率缓慢的SQL语句,为数据库优化工作提供帮助。
3.慢查询日志默认是不开启的,也没必要一直开启。(如果开启必定会消耗系统的性能)
4.当需要进行采样分析时手工开启。
慢查询日志相关参数
mysql.cnf中修改以下配置后,需要重新启动数据库服务使之生效。
slow_qu...
分类:
数据库 时间:
2015-02-15 23:10:10
阅读次数:
365
I‘m getting this error whenever I build in Xcode 6 beta 4. It seems to be making my app insanely slow. What exactly does this mean and how do I fix it? "Warning: Error creating LLDB target at path ...
分类:
数据库 时间:
2015-02-14 12:27:21
阅读次数:
211
直接运行一下代码就可以:
log-error=log-error.log
log=log.log
log-bin=log-bin.log
log-queries-not-using-indexes=log-queries-not-using-indexes.log
log-warnings=1
log-slow-queries=log-slow-query.log
log-u...
分类:
数据库 时间:
2015-02-14 12:26:22
阅读次数:
152
题目链接:http://acm.sgu.ru/problem.php?contest=0&problem=455Due to the slow 'mod' and 'div' operations with int64 type, all Delphi solutions for the probl...
分类:
编程语言 时间:
2015-02-11 21:48:03
阅读次数:
322
Time Limit: 2 Seconds Memory Limit: 65536 KBOne day, Nobita found that his computer is extremely slow. After several hours’ work, he finally found that it was a virus that made his poor computer s...
分类:
其他好文 时间:
2015-02-10 15:21:51
阅读次数:
183
题目:
Given a linked list, return the node where the cycle begins. If there is no cycle, return null.
Follow up:
Can you solve it without using extra space?分析:首先使用快慢指针技巧,如果fast指针和slow指针相遇,则说明链表存在环路。当f...
分类:
其他好文 时间:
2015-02-05 20:29:16
阅读次数:
180