MySQL索引分析和优化

索引

  索引用来快速地寻找那些具有特定值的记录,所有MySQL索引都以B-树的形式保存。如果没有索引,执行查询时MySQL必须从第一个记录开始扫描整个表的所有记录,直至找到符合要求的记录。表里面的记录数量越多,这个操作的代价就越高。如果作为搜索条件的列上已经创建了索引,MySQL无需扫描任何记录即可迅速得到目标记录所在的位置。如果表有1000个记录,通过索引查找记录至少要比顺序扫描记录快100倍。

本日志由 flyinweb 于 2009-12-29 23:10:23 发表到 数据库技术 中,目前已经被浏览 182 次,评论 0 次;

作者添加了以下标签: MySQL索引

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

mysql配置中英文对照

本日志由 flyinweb 于 2009-12-16 14:29:40 发表到 数据库技术 中,目前已经被浏览 212 次,评论 0 次;

作者添加了以下标签: mysqlmy.cnf

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

TCMalloc(Thread-Caching Malloc)是google开发的开源工具──"google-perftools"中的成员。与标准的glibc库的malloc相比,TCMalloc在内存的分配上效率和速度要高得多,可以在很大程度上提高MySQL服务器在高并发情况下的性能,降低系统负载。

本日志由 flyinweb 于 2009-12-10 16:06:47 发表到 数据库技术 中,目前已经被浏览 291 次,评论 0 次;

作者添加了以下标签: MySQL高并发性能

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

原文作者: Peter Zaitsev
原文来源: http://www.mysqlperformanceblog.com/2006/05/17/mysql-server-memory-usage
译者:叶金荣(http://imysql.cn/node/97)

Every so often people ask me the question how should they estimate memory consumption by MySQL Server in given configuration. What is the formula they could use.

经常有人问我配置MySQL时该如何估算内存的消耗。那么该使用什么公式来计算呢?

本日志由 flyinweb 于 2009-12-08 17:34:21 发表到 数据库技术 中,目前已经被浏览 233 次,评论 0 次;

作者添加了以下标签: MySQLmemory

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

  1. [root@localhost mysql-5.1.34]# ./configure -h  
  2. `configure' configures this package to adapt to many kinds of systems.  
  3.  

本日志由 flyinweb 于 2009-09-28 16:36:10 发表到 数据库技术 中,目前已经被浏览 524 次,评论 0 次;

作者添加了以下标签: mysqlconfigure

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

It appears this configuration wasn’t working with HAProxy version 1.3.20 due to the “option nolinger” feature. I have removed it from the configuration and can confirm it works well with HAProxy v.1.3.15 to v.1.3.20. Because of this, you’ll also notice a significant increase in TIME_WAIT sessions, as well as ip_conntrack_count increasing from ~150 to ~925.

本日志由 flyinweb 于 2009-09-21 10:34:18 发表到 数据库技术 中,目前已经被浏览 915 次,评论 0 次;

作者添加了以下标签: HAProxyMySQL

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

mytop - a top clone for MySQL

About

mytop is a console-based (non-gui) tool for monitoring the threads and overall performance of a MySQL 3.22.x, 3.23.x, and 4.x server. It runs on most Unix systems (including Mac OS X) which have Perl, DBI, and Term::ReadKey installed. And with Term::ANSIColor installed you even get color. If you install Time::HiRes, you'll get good real-time queries/second stats. As of version 0.7, it even runs on Windows (somewhat).

本日志由 flyinweb 于 2009-09-14 11:29:21 发表到 数据库技术 中,目前已经被浏览 690 次,评论 0 次;

作者添加了以下标签: mytopmysql

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

服务器的大用户量的承载方案
一、前言
二、编译安装
三、 安装MySQL、memcache
四、 安装Apache、PHP、eAccelerator、php-memcache
五、 安装Squid
六、后记

本日志由 flyinweb 于 2009-08-25 10:59:17 发表到 Linux 中,目前已经被浏览 282 次,评论 0 次;

作者添加了以下标签: nginxapachemysqlphpmemcachedSquid

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

181/3