1,隐藏和显示 hide();//隐藏 show();//显示 toggle();//隐藏和显示 注: hide(speed,callback); show(speed,callback); toggle(speed,callback); ----speed表示速度,可以是"slow","f...
分类:
Web程序 时间:
2015-10-23 18:29:13
阅读次数:
174
presentViewController is so slow in "tableView:didSelectRowAtIndexPath:"Use Case: 在UITableView的delegate方法"tableView:didSelectRowAtIndexPath:"中调用"[UIVi...
分类:
移动开发 时间:
2015-10-23 17:58:24
阅读次数:
204
问题导读:1.zookeeper在kafka的作用是什么?2.kafka中几乎不允许对消息进行“随机读写”的原因是什么?3.kafka集群consumer和producer状态信息是如何保存的?4.partitions设计的目的的根本原因是什么?一、入门 1、简介 Kafka is a dist.....
分类:
其他好文 时间:
2015-10-22 12:15:25
阅读次数:
163
本文导读:如何在mysql查找效率慢的SQL语句呢?这可能是困然很多人的一个问题,MySQL通过慢查询日志定位那些执行效率较低的SQL 语句,用--log-slow-queries[=file_name]选项启动时,mysqld 会写一个包含所有执行时间超过long_query_time 秒的SQL...
分类:
数据库 时间:
2015-10-19 19:23:02
阅读次数:
255
前言度过了一个阳光明媚的周末。一个阴霾的周日夜晚。第15集 WCF里面的异常处理(1) Exception handling in WCF大致看了一下,这个WCF视频里面总共有6集,这个是第一集,对WCF的异常做一个大致的入门介绍。① 新建一个Demo, 命名为CalculatorService,里...
分类:
其他好文 时间:
2015-10-18 22:42:35
阅读次数:
181
于 C# 6.0 包裹在异常处理的新功能,有两个方面的改进:异步处理(async and await)能力 catch block 总结使用。于 C# 5.0 释放 async and await,在那个时候它不能用 catch block。现在能够做到这一点。支持异常过滤 exception fi...
INotifyPropertyChanged Undo/redo Code contracts (preconditions) Logging Transaction handling Exception handling Thread di...
分类:
其他好文 时间:
2015-10-18 12:35:43
阅读次数:
134
查看当前 慢查日志 状态: show?variables?like?‘%slow%‘;
#主要关注三个变量:
slow_query_log??#是否启用
slow_query_log_file??#日志文件
#慢查的时间阈值
show?variables?like?‘long_query_time‘...
分类:
数据库 时间:
2015-10-15 20:46:38
阅读次数:
186
1. Global & Dynamic example:slow_query_log ?? 显示该变量的值: 当前设置为OFF ?? 在一个session中设置该Global &Dynamic类型的变量: 可以看到,对于global类型的变量必需通过global关键字来设置其值。 ...
分类:
数据库 时间:
2015-10-15 16:42:40
阅读次数:
259
copy from http://postgresql.nabble.com/Slow-count-again-td3206177.htmlI know that there haven been many discussions on the slowness of count(*) evenwh...
分类:
其他好文 时间:
2015-10-13 17:08:18
阅读次数:
273