上一页 1 2 3 4 5 6 ··· 8 下一页

2012年10月29日

摘要: 1、锁 Mysql 读锁(共享锁)、写锁(排他锁),Inodb有个 间隙锁 粒度: Myisam 表级 Inodb行锁 MVCC(其实 Inodb用的是这种,多版本并发控制的行锁) MVCC:乐观 悲观两种锁 死锁:Inodb采用回滚最少排他行锁的事务 事务都是用隐式锁,Lock table 明式(不建议)2、 事务 Inodb支持 start transaction sql..... commit 事务的特性:ACID 原子性 一致性 隔离性 持久性 隔离级别: Read Uncommited(读取未提交) Read Commited(读取提交) Rep... 阅读全文
posted @ 2012-10-29 16:52 Jason-zy 阅读(166) 评论(0) 推荐(0)

2012年8月11日

摘要: Extract everything from the distribution tarball (haven't you already?) and go to the sphinx subdirectory. (We are using version 2.0.1-beta here for the sake of example only; be sure to change this to a specific version you're using.) $tarxzvfsphinx-2.0.1-beta.tar.gz $cdsphinx Run the config 阅读全文
posted @ 2012-08-11 15:00 Jason-zy 阅读(213) 评论(0) 推荐(0)

2012年7月26日

摘要: 某些情况下安装包不一致比如mysql-dev centos中就是这样ubuntu中却是libmysqlclient-dev这个时候可以用sudo aptitude search mysql | grep devel 阅读全文
posted @ 2012-07-26 21:32 Jason-zy 阅读(202) 评论(0) 推荐(0)

2012年5月31日

摘要: (需要知道某个元素在另外一个集合中是否存在,有一定的误伤率) 1、蜘蛛爬行需要判断此URL是否已经爬过2、2个比较大的文件需要知道重复的数据有哪些?(第一个文件存到hash_set中,遍历一遍第二个文件即可) PHP的 Bloom-filterhttp://code.google.com/p/php-bloom-filter/ 阅读全文
posted @ 2012-05-31 11:46 Jason-zy 阅读(145) 评论(0) 推荐(0)

2012年5月24日

摘要: 阅读全文
posted @ 2012-05-24 11:12 Jason-zy 阅读(144) 评论(0) 推荐(0)

2012年3月6日

摘要: HTTP协议的Cache -Control指定请求和响应遵循的缓存机制。在请求消息或响应消息中设置 Cache-Control并不会影响另一个消息处理过程中的缓存处理过程。请求时的缓存指令包括no-cache、no-store、max-age、 max-stale、min-fresh、only-if-cached等。响应消息中的指令包括public、private、no-cache、no- store、no-transform、must-revalidate、proxy-revalidate、max-age。Nginx的ngx_http_headers_module模块可以对Cache-Con 阅读全文
posted @ 2012-03-06 10:30 Jason-zy 阅读(15862) 评论(0) 推荐(0)

2012年3月5日

摘要: Nginx, Haproxy,LVSvarnish squid 阅读全文
posted @ 2012-03-05 14:57 Jason-zy 阅读(107) 评论(0) 推荐(0)

2011年8月25日

摘要: Boolean b zend_bool Long l long Double d double String s char*, int Resource r zval* Array a zval* Object o zval* zval z zval* 阅读全文
posted @ 2011-08-25 20:35 Jason-zy 阅读(373) 评论(0) 推荐(0)

2011年8月4日

摘要: 点击效果/**Input友好提示*使用方法*可使用label|span等内联元素*tipInput为提示标签属性*nostyleInput为Input的提示属性*<labelclass="tipInput"style="display:none;">请输入姓名</label>*input加入nostyleInput*addbyJason.zhang2011.8.4*//***对象复制请使用clonevarauthType=$("div.classname:first");varnewAtt=authType.c 阅读全文
posted @ 2011-08-04 19:09 Jason-zy 阅读(352) 评论(0) 推荐(0)

2011年7月4日

摘要: <?php //[Informational 1xx] $http_code["0"]="Unable to access"; $http_code["100"]="Continue"; $http_code["101"]="Switching Protocols"; //[Successful 2xx] $http_code["200"]="OK"; $http_code["201"]="Creat 阅读全文
posted @ 2011-07-04 19:18 Jason-zy 阅读(448) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 8 下一页