Home > Backend Development > PHP Tutorial > mysql分表怎么办

mysql分表怎么办

WBOY
Release: 2016-06-13 10:07:38
Original
843 people have browsed it

mysql分表怎么处理?
数据量大的时候 如何根据数据量 比如一个表存放200万的数据 达到这个数据 自动分表 php如何结合mysql进行分表 查询怎么查询?

------解决方案--------------------
你想php中控制表的大小?

建议你翻下mysql的Partition,大概5.1+支持
将适当的字段根据range、hash……方式分区,我想一样能达到需求

如此的好处是,在数据操作中,你不需要人为去判断数据从哪些表中查询,

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