PHPackages                             zebra/merge\_table - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. zebra/merge\_table

ActiveLibrary[Database &amp; ORM](/categories/database)

zebra/merge\_table
==================

database merge table

1693PHP

Since Nov 29Pushed 11y ago4 watchersCompare

[ Source](https://github.com/PHP-Zebra/Zebra-MergeTable)[ Packagist](https://packagist.org/packages/zebra/merge_table)[ RSS](/packages/zebra-merge-table/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Zebra-MergeTable
================

[](#zebra-mergetable)

基于PHP实现的大表水平拆分，类似mysql合并表 一种不是很中肯的说法是，mysql能支持千万级别的数据，oracle能支持上亿级别的数据，超过这个级别，可能会出现性能瓶颈。

但实际应用场景中，我们经常会遇到如下情况：

- 时间积累，表体积变大，业务要求不能迁移历史数据，查询性能下降
- 表记录数不多，但体积很大，查询性能不好，例如文章、帖子表等
- 表体积过大，索引过多，造成写入成本很高

以上只是举几个简单的例子，这几个场景下，都是不允许删除数据的。

Zebra-MergeTable希望能够通过对表进行水平拆分的方式解决这些问题
---------------------------------------

[](#zebra-mergetable希望能够通过对表进行水平拆分的方式解决这些问题)

目标：

- 灵活的配置化拆表
- 透明的拆表逻辑，在上层看来，仍然在操作一张表
- 常用函数支持
- 高效结果合并、排序、运算

哪些是我们暂时不会考虑的：

- 独立于语言（暂时只支持PHP）
- 复杂运算，例如去重、平均数等（分布式运算难题）

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/8d132b55d12cd603f8cce9c152999e2b3f98748d56fe8a21adf62d5830d88d87?d=identicon)[huyanping](/maintainers/huyanping)

---

Top Contributors

[![white-poto](https://avatars.githubusercontent.com/u/4362540?v=4)](https://github.com/white-poto "white-poto (9 commits)")

### Embed Badge

![Health badge](/badges/zebra-merge-table/health.svg)

```
[![Health](https://phpackages.com/badges/zebra-merge-table/health.svg)](https://phpackages.com/packages/zebra-merge-table)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
