PHPackages                             magentiz/module-split-db - 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. magentiz/module-split-db

ActiveMagento2-module

magentiz/module-split-db
========================

Magentiz\_SplitDb Extension, splitdb for magento 2

1.0.0(2y ago)12292[1 issues](https://github.com/magentiz/magento-2-split-db/issues)OSL-3.0PHPPHP ~5.6.5 || &gt;=7.0

Since Dec 19Pushed 2y agoCompare

[ Source](https://github.com/magentiz/magento-2-split-db)[ Packagist](https://packagist.org/packages/magentiz/module-split-db)[ RSS](/packages/magentiz-module-split-db/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Magentiz SplitDb by Magentiz
============================

[](#magentiz-splitdb-by-magentiz)

Magentiz\_SplitDb Extension, splitdb for magento 2

> This module was inspired by the functionality of [m2-ce-splitdb](https://github.com/rafaelstz/m2-ce-splitdb). We acknowledge and appreciate the contributions of the original author.

Requirements
------------

[](#requirements)

- Magento Community Edition 2.3.x-2.4.x or Magento Enterprise Edition 2.3.x-2.4.x
- Exec function needs to be enabled in PHP settings.

Installation Method 1 - Installing via composer
-----------------------------------------------

[](#installation-method-1---installing-via-composer)

- Open command line
- Using command "cd" navigate to your magento2 root directory
- Run command: composer require magentiz/module-split-db

Installation Method 2 - Installing using archive
------------------------------------------------

[](#installation-method-2---installing-using-archive)

- Download [ZIP Archive](https://github.com/magentiz/magento-2-split-db/releases/)
- Extract files
- In your Magento 2 root directory create folder app/code/Magentiz/SplitDb
- Copy files and folders from archive to that folder
- In command line, using "cd", navigate to your Magento 2 root directory
- Run commands:

```
php bin/magento module:enable Magentiz_SplitDb
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy

```

User guide
----------

[](#user-guide)

Run `php bin/magento db:mode:set --mode db_mode` to change db mode. db\_mode can be **split** or **default**.

Setup Testing Environment Guidelines
------------------------------------

[](#setup-testing-environment-guidelines)

### Step 1: Prepare Magento Project:

[](#step-1-prepare-magento-project)

First, you need to set up a Magento site running locally. Refer to this guide: [Docker Magento](https://github.com/markshust/docker-magento)

### Step 2: Install MySQL Replication Master-Slave:

[](#step-2-install-mysql-replication-master-slave)

Refer to [Docker MariaDb Replication](https://github.com/vtearit/docker-mariadb-replication), to integrate MySQL Replication into the website you just installed following step 1, you can follow the guide:

- Copy the [db\_slave.env file](https://github.com/vtearit/docker-mariadb-replication/blob/master/env/db_slave.env) from the env directory of docker-mariadb-replication and paste it into the env directory of the Magento project. Verify that the information in the file corresponds to the project's configuration.
- Copy the [replication](https://github.com/vtearit/docker-mariadb-replication/tree/master/replication) folder and paste it into the root directory of the project.
- Copy the services **`db`** and **`db_slave`** from the [docker-compose.yml](https://github.com/vtearit/docker-mariadb-replication/blob/master/docker-compose.yml) file to replace the **`db`** service in the compose.yaml file in the project's root directory. Also, add the **`dbslavedata`** volume to the list of volumes at the end of the compose.yaml file. The purpose of this is to create an additional Docker container for the MariaDB slave.
- From root directory, Run `bin/restart` and follow the steps to switch to MySQL replication as described in [Docker MariaDb Replication](https://github.com/vtearit/docker-mariadb-replication): *access master-run query* and *access slave-run query*. After that, you can verify by adding a record to the database.
- After successfully switching the website to use MySQL Replication, run `bin/magento setup:uninstall` to uninstall magento then run `bin/setup-install` to reinstall. At this point, since you have set up MySQL Replication, the data will also be updated on the slave.
- Update the **db** and **DB Mode** in the **app/etc/env.php** based on **env.php.example**.

### Step 3: Install Magentiz\_SplitDb extension using Composer or the zip file as mentioned above.

[](#step-3-install-magentiz_splitdb-extension-using-composer-or-the-zip-file-as-mentioned-above)

Support
-------

[](#support)

If you have any issues, please [contact us](mailto:info@magentiz.com)

Need More Features?
-------------------

[](#need-more-features)

Please contact us to get a quote

License
-------

[](#license)

The code is licensed under [Open Software License ("OSL") v. 3.0](http://opensource.org/licenses/osl-3.0.php).

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

879d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3c73437a955f22553e19cd3dfebdaceae957128288d877eced18cd041b5fe537?d=identicon)[vuduc](/maintainers/vuduc)

---

Tags

magentizmagento-2-extensionmagento-2-extension-freemagento2-moduleoptimizesplit-dbsplitdbmagento 2magento 2 splitdbmagento splitdbsplitdbmagentizmagentiz\_splitdb

### Embed Badge

![Health badge](/badges/magentiz-module-split-db/health.svg)

```
[![Health](https://phpackages.com/badges/magentiz-module-split-db/health.svg)](https://phpackages.com/packages/magentiz-module-split-db)
```

###  Alternatives

[mageplaza/module-smtp

SMTP Extension for Magento 2 helps the owner of store simply install SMTP (Simple Mail Transfer Protocol) server which transmits the messages into codes or numbers

3015.9M8](/packages/mageplaza-module-smtp)[magepal/magento2-gmailsmtpapp

Magento 2 SMTP Extension - Configure Magento 2 to send all transactional email using Gmail, G Suite, Amazon SES, Office360, Mailgun, SendGrid, Mandrill or any other SMTP servers

3321.8M2](/packages/magepal-magento2-gmailsmtpapp)[magepal/magento2-googletagmanager

Google Tag Manager (GTM) for Magento 2 with Advance Data Layer

2671.5M4](/packages/magepal-magento2-googletagmanager)[yireo/magento2-webp2

Magento 2 module to add WebP support to the Magento frontend

2091.2M7](/packages/yireo-magento2-webp2)[justbetter/magento2-sentry

Magento 2 Logger for Sentry

1851.5M3](/packages/justbetter-magento2-sentry)[mageplaza/magento-2-social-login

Magento 2 Social Login extension is designed for quick login to your Magento 2 store without procesing complex register steps

1841.2M5](/packages/mageplaza-magento-2-social-login)

PHPackages © 2026

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