Home > Database > Mysql Tutorial > mysql单表数量极限和性能_MySQL

mysql单表数量极限和性能_MySQL

WBOY
Release: 2016-05-30 17:11:19
Original
2004 people have browsed it

 

账户流水表

mysql> select count(1) from account_log;

+-----------+
| count(1) |
+-----------+
| 393625073
+-----------+

1 row in set (1 min 6.98 sec)

dao层方法 每分钟请求数 毫秒数

1. selectByOrderId 358 3毫秒 (阿里云网络延时2-3毫秒)

2. insert 100 2.89 毫秒

这个统计结果大大出乎我的意料.

分析起来, 我们的业务操作都是操作近期的数据. 所以索引分区文件不需要io切换, 数据不需要io切换


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template