回顾我的2010,20本书陪我度过的三十而立的年纪
摘要:2010年,正好是我三十而立之年,一直有习惯从霍营城铁到知春路地铁站的时候,三十分钟时间里拿着本书看,不觉一年间居然看了20本书,特来晒晒:前几本书是关于用户体验的:1 《锦绣蓝图》,作者是linkedin的产品经理,也曾在雅虎任职,觉得此书主要是给初级产品经理设立一个做互联网产品的最佳实践, 比如搜索,导航,社交,信息架构,都蜻蜓点水到位,配有不少网站案例,值得学习。2 《结网》,王坚著,原QQ...
阅读全文
posted @
2011-02-01 18:14
Keep Walking
阅读(4543)
推荐(10) 编辑
mysql cardinality
摘要:一直以为mysql没有类似sql server那样的列统计信息数据,今天算是被我翻到了。在show index 命令里面,这个值表示索引的唯一值有多少,图示表示此索引有14w的索引唯一值,也就是说选择性还行,比较合适建索引。不过这个值的管理不是很透明,inno和myisam都是通过 analyze table 命令来更新此值。但是这个在sql server下面,可以使用各种手段来调控该值。sample取样,百分比,统计,都可以。一般的mysql运维DBA一般都会比较关注这个值吧,会定期 analyze table 来更新这个值。这个值的准确与否和sql server一样,会关系到查询优化器是否
阅读全文
posted @
2011-01-28 15:53
Keep Walking
阅读(2065)
推荐(1) 编辑
uchome为什么采用myisam类型表
摘要:今天有些悟到了其中的某个原因吧,uchome把其中的最重要的表都是使用的fixed,这样,对于myisam来说,是非常好的优化手段,这样说有些牵强?不过我有次的确是想到过一个原因,现在忘记啦,哈哈哈,等回忆起来再补充吧关于myisam和inno在fixed表上的性能区别,可以参看这篇文章:http://hi.baidu.com/thinkinginlamp/blog/item/27dca97733...
阅读全文
posted @
2010-06-14 09:21
Keep Walking
阅读(284)
推荐(0) 编辑
《高性能mysql》到手
摘要:呵呵,很欣喜,这本书的英文版电子书看了差不多1/3,感觉特别好,前天听人说中文版也出来了就买了本,真不错,
阅读全文
posted @
2010-03-24 14:53
Keep Walking
阅读(336)
推荐(0) 编辑
clustered index disadvantages in mysql
摘要:If you don’t define a primary key, InnoDB will try to use a unique nonnullable indexinstead. If there’s no such index, InnoDB will define a hidden primary key for youand then cluster on th...
阅读全文
posted @
2009-12-10 14:20
Keep Walking
阅读(2126)
推荐(0) 编辑
mysql混合存储类型对事务影响
摘要:Mixing storage engines in transactionsMySQL doesn’t manage transactions at the server level. Instead, the underlying storageengines implement transactions themselves. This means you can’t ...
阅读全文
posted @
2009-12-09 11:07
Keep Walking
阅读(1915)
推荐(0) 编辑
Bit-Packed Data Types
摘要:MySQL has a few storage types that use individual bits within a value to store datacompactly. All of these types are technically string types, regardless of the underlyingstorage format and manipulati...
阅读全文
posted @
2009-12-08 16:31
Keep Walking
阅读(1993)
推荐(0) 编辑
VARCHAR and CHAR differences in mysql
摘要:String TypesMySQL supports quite a few string data types, with many variations on each. Thesedata types changed greatly in versions 4.1 and 5.0, which makes them even morecomplicated. Since MySQL 4.1,...
阅读全文
posted @
2009-12-08 15:30
Keep Walking
阅读(1702)
推荐(0) 编辑
Avoid NULL if possible in mysql
摘要:You should define fields as NOT NULL whenever you can. A lot of tables includenullable columns even when the application does not need to store NULL (theabsence of a value), merely because it’s ...
阅读全文
posted @
2009-12-08 14:57
Keep Walking
阅读(1749)
推荐(0) 编辑
Why Benchmark?
摘要:Many medium to large MySQL deployments have staff dedicated to benchmarking.However, every developer and DBA should be familiar with basic benchmarkingprinciples and practices, because they’re b...
阅读全文
posted @
2009-12-05 18:25
Keep Walking
阅读(347)
推荐(0) 编辑
The InnoDB Engine
摘要:The InnoDB Engine InnoDB was designed for transaction processing—specifically, processing of many short-lived transactions that usually complete rather than being rolled back. It remains the ...
阅读全文
posted @
2009-12-05 14:08
Keep Walking
阅读(764)
推荐(0) 编辑
MYSQL MVCC实现及其机制
摘要:多版本并发控制 Multiversion Concurrency Control 大部分的MySQL的存储 引擎,比如InnoDB,Falcon,以及PBXT并不是简简单单的使用行锁机制。它们都使用了行锁结合一种提高并发的技术,被称为MVCC(多版本并 发控制)。MVCC并不单单应用在MySQL中,其他的数据库如Oracle,PostgreSQL,以及其他数据库也使用这个技术。 MVCC避免...
阅读全文
posted @
2009-12-05 13:08
Keep Walking
阅读(7352)
推荐(2) 编辑
构建高性能web网站
摘要:这本书从拿到手里到看完最后一页,十天时间,每天都能从书里得到很多启发,自己也给网站的未来的框架有了一个比较清晰的发展思路,而且已经在网站上应用了其中的一些技术和观点。也养成了自己每天7点半坐公交车不坐城铁,每天只在公交车上看书的习惯, 在接下来的日子里,将开始着重精读《high performance mysql 2》这本书,据说是最有深度的mysql书籍了。也期望这本书能指导我现在的mysql更...
阅读全文
posted @
2009-12-05 07:59
Keep Walking
阅读(328)
推荐(0) 编辑
转载 3 ways MySQL uses indexes(MySQL Performance Blog)
摘要:(今天上网看到这篇博客,讲解索引的用处,比较基础,其实索引不止这三点)I often see people confuse different ways MySQL can use indexing, getting wrong ideas on what query performance they should expect. There are 3 main ways how MySQL c...
阅读全文
posted @
2009-10-10 17:28
Keep Walking
阅读(780)
推荐(0) 编辑
转载:mysql复制优化
摘要:这两天有空看了一下ppc2009大会的一些pdf,发现这次关于Replication的讨论还是很多的,很多内容都很实用,就总结了一下。本人英文水平水平有限,难免有翻译的不对的地方,有疑问欢迎讨论:) Replication延时的类型1. 固定性的延时——Slave的数据持续性的落后于Master并且一直无法与Master的数据保持一致。——Slav...
阅读全文
posted @
2009-06-12 17:48
Keep Walking
阅读(3067)
推荐(0) 编辑
关于注掉skip-innodb选项也不能启用innoDB引擎的解决办法
摘要:网上很多关于启用innoDB的办法,都是注释掉skip-innodb选项,实际上,你还需要删除两个文件:C:\Program Files\MySQL\MySQL Server 5.0\data\ib_logfile* C:\MySQL Datafiles\ibdata* 如果仍然不能确定,可以使用语句查看:SHOW VARIABLES LIKE 'have_%'
阅读全文
posted @
2009-06-12 11:32
Keep Walking
阅读(5577)
推荐(0) 编辑
mysql error 1101 text类型不允许有默认值
摘要:根据 mysql5.0以上版本 strict mode (STRICT_TRANS_TABLES) 的限制: 不支持对not null字段插入null值 不支持对自增长字段插入''值,可插入null值 不支持 text 字段有默认值在my.ini中将 STRICT_TRANS_TABLES 去掉即可。但是这个比较危险的是自增字段也可以插入null值!而自增字段一般都是主键,聚集索引,真的存在nul...
阅读全文
posted @
2009-06-04 11:29
Keep Walking
阅读(4012)
推荐(0) 编辑
Result consisted of more than one row
摘要:mysql的参数赋值语句必须是只能够选出一行,SELECT username,nickname INTO Ausername,Anickname FROM userbase WHERE userid = userid LIMIT 1 ;这样的语句必须要加上limit 1才行。另外,这种赋值语句还有个规矩就是参数名和字段名不能冲突,不然能够执行过去,但是却没有给参数赋值,这是个很隐性的错误,可以参考...
阅读全文
posted @
2009-06-04 11:00
Keep Walking
阅读(5690)
推荐(0) 编辑
The MySqlParameterCollection only accepts non-null MySqlParameter type objects
摘要:mysql连接器 不支持将null参数传递给连接,所以在加入以前必须得判断是否为null,类似sqlhelper应该修改一下:[代码]
阅读全文
posted @
2009-06-04 10:45
Keep Walking
阅读(1993)
推荐(0) 编辑
配置成功sphinxse
摘要:这几天将sphinx+coreseek+mysql配置结合成功,就是觉得coreseek的中文好像关联度不高的都选择出来了,可能我的语法还是用得有点不对,不知哪位熟悉sphinx查询语法的能指点一二,实现精确匹配查询的呢?
阅读全文
posted @
2009-06-01 23:24
Keep Walking
阅读(1598)
推荐(0) 编辑