SUN真是开源的毒药,收购mysql以后,竟然宣布一些特性将闭源,只提供给企业版。
原帖见:注意Marten Mickos是Mysql CEO
http://jcole.us/blog/archives/2008/04/14/just-announced-mysql-to-launch-new-features-only-in-mysql-enterprise/
Vadim的评论
http://www.mysqlperformanceblog.com/2008/04/15/partially-opensourced/
原文http://google-perftools.googlecode.com/svn/trunk/doc/tcmalloc.html
Sanjay Ghemawat
Motivation
TCMalloc is faster than the glibc 2.3 malloc (available as a
separate library called ptmalloc2) and other mallocs that I have
tested. ptmalloc2 takes approximately 300 nanoseconds to execute a ...
Enum Fields VS Varchar VS Int + Joined table: What is Faster?from MySQL Performance Blog by Alexey KovyrinReally
often in customers' application we can see a huge tables with
varchar/char fields, with small sets of possible values. These are
"state", "gender", "status&quo ...
MySQL InnoDB表有外键约束功能,可以保证数据的一致性和实现一些级联操作,比如
表 product
id,
name
表 order
id,
product_id
name
product_id就可以使用Mysql的外键约束功能,如果插入新的order是,product_id在product表中并不存在则这条记录就不完整,不能插入数据库中。
现在我的疑问就是:
MySQL在使用外键约束,做一致性检查的时候,对插入和更新性能有多少影响?
对查询性能应该没有太多影响
数据库的隔离级别主要是为读操作定义保护级别的;对于修改写操作,无论哪种隔离级别都可以保证写操作的正确执行。SQL标准为三种副作用:
Dirty reads: 事务T2提交了数据,事务T1这时读取了T2提交的数据,T2发生异常rollback,那么T1读取的数据就是有问题的数据,是dirty read。
unrepeatable reads:事务T1读取数据以后,事务T2修改了T1读取的数据,事务T1以同样的查询从数据库读取数据,就会发现和上一次读取的不一致,所以称为unrepeatable reads。
phantom reads:事务T1查询数据 ...
作者:andyao
原文link: http://andyao.javaeye.com/admin/show/144033
转载请留名
1. 简介
在Web应用程序体系架构中,数据持久层(通常是一个关系数据库)是关键的核心部分,它对系统的性能有非常重要的影响。MySQL是目前使用最多的开源数据库,但是MySQL数据库的默认设置性能非常的差,仅仅是一个玩具数据库。因此在产品中使用MySQL数据库必须进行必要的优化。
优化是一个复杂的任务,本文描述MySQL相关的数据库设计和查询优化,服务器端优化,存储引擎优化。
2. 数据库设计和查询优化
在My ...
By Justin Silverton
use the explain command
Use multiple-row INSERT statements to store many rows with one SQL statement.
The explain command can tell you which indexes are used with the specified query and many other pieces of useful information that can help you choose a better in ...
Nuts and Bolts of Transaction Processing
关于XA事务的, 第二代分布式事务管理
The Challenges of Extreme Transaction Processing in a World of Services and Events
关于ETP事务,第三代分布式事务管理
Lessons from Pat Helland: Life Beyond Distributed Transactions
关于分布式事务的讨论
MyISAM和InnoDB的性能比较的一篇文章,可以看出InnoDB并不比MyISAM慢。而且InnoDB提供事务支持。
PS: javaeye用的就是InnoDB
InnoDB vs MyISAM vs Falcon benchmarks - part 1
Several days ago MySQL AB made new storage engine Falcon available for wide auditory. We cannot miss this event and executed several benchmarks to see how Falcon per ...
纠正自己对mysql的一个误解,mysql从5.0开始支持XA DataSource。Connector/J 版本要使用5.0版本,5.0以下的不支持。
Mysql Connector/J 文档中提到:
1 Connector/J 5.0 provides support for all the functionality offered by Connector/J 3.1 and includes distributed transaction (XA) support.
2 You can ...
1. -static 13%
--with-client-ldflags=-all-static
--with-mysqld-ldflags=-all-static
静态链接提高13%性能
2. -pgcc 1%
CFLAGS="-O3 -mpentiumpro -mstack-align-double" CXX=gcc \
CXXFLAGS="-O3 -mpentiumpro -mstack-a ...
- 浏览: 42887 次
- 性别:

- 来自: 北京

- 详细资料
搜索本博客
我的相册
Snap1
共 1 张
共 1 张
最新评论
-
使用Atomikos Transaction ...
引用Caused by: com.atomikos.icatch.SysExce ...
-- by bagui3 -
Struts2中使用Stream Res ...
Stream result type? 可有可无,把Respose的header ...
-- by ray_linn -
Struts2中使用Stream Res ...
我的程序,虽然结果出来了,但后台总是抛错:------------------- ...
-- by Acaleph -
使用Atomikos Transaction ...
Caused by: com.atomikos.icatch.SysExcept ...
-- by baoyaer -
Annotation风格的Spring M ...
刚用了spring MVC的annotation, 确实简单。应该说在简化问题上 ...
-- by slaser






评论排行榜