Home  >  Article  >  Backend Development  >  对于分表的靠山查询

对于分表的靠山查询

WBOY
WBOYOriginal
2016-06-13 11:07:03929browse

对于分表的后台查询
我在做一个后台,管理帖子回复的,因为回复很多,后端对数据库进行了分表,

现在后台有个需求,需要产品能够根据时间对所有的回复进行审核,并分页,

这个不在同一张表里,我怎么按照时间分页啊,再者,数据库这10个表已经很大

每个表都是千万级别,用unionALL直接走不动,想问一下,有没有人做过这样的

后台,感激不尽
------解决方案--------------------
按指定时间范围从10个表中抽取数据到临时表

------解决方案--------------------
可以考虑分区,分表的话可以参考MERGE存储引擎

Statement:
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