PHPackages                             aoepeople/aoe\_dbretry - 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. aoepeople/aoe\_dbretry

AbandonedArchivedMagento-module[Database &amp; ORM](/categories/database)

aoepeople/aoe\_dbretry
======================

Magento DB adapter that will retry lost connections and deadlocks

7059.3k15[4 issues](https://github.com/AOEpeople/Aoe_DbRetry/issues)PHP

Since Jan 25Pushed 8y ago43 watchersCompare

[ Source](https://github.com/AOEpeople/Aoe_DbRetry)[ Packagist](https://packagist.org/packages/aoepeople/aoe_dbretry)[ RSS](/packages/aoepeople-aoe-dbretry/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

[![AOE](aoe-logo.png)](http://www.aoe.com)

Aoe\_DbRetry Magento Module [![Build Status](https://camo.githubusercontent.com/9ad540ee145e56343caf6f4a3d6297e1ccdfb3d8ba9158cc37218ad668da1698/68747470733a2f2f7472617669732d63692e6f72672f414f4570656f706c652f416f655f446252657472792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/AOEpeople/Aoe_DbRetry)
==========================================================================================================================================================================================================================================================================================================================

[](#aoe_dbretry-magento-module-)

License
-------

[](#license)

[OSL v3.0](http://opensource.org/licenses/OSL-3.0)

Contributors
------------

[](#contributors)

- [Lee Saferite](https://github.com/LeeSaferite) (AOE)

Compatability
-------------

[](#compatability)

- Module Dependencies
    - Mage\_Core (implicit)

Description
-----------

[](#description)

This module is very simple and focus on one task. It replaces the DB adapter with an extended version that will retry queries if the connection is lost, the query cannot obtain a needed lock, or a deadlock occours. These three situations are detected via exception messages. The underlying (parent) code actually wraps at least one of these exceptions up inside another exception, so we check for that and unwrap the exception if needed.

Configuration
-------------

[](#configuration)

- &lt;/app/etc/local.xml&gt;/config/global/resources/{connection name}/connection/retries
    - {connection\_name} is referring to the named connection, like 'default\_setup' which is the default connection
    - Integer number between 0 and 5 that indicates how many times to retry the query
    - Default value is 5 retries
- &lt;/app/etc/local.xml&gt;/config/global/resources/{connection name}/connection/retry\_power
    - {connection\_name} is referring to the named connection, like 'default\_setup' which is the default connection
    - Integer number between 1 and 5 that indicate the power of the exponential backoff feature
    - Default value is 2
    - Used in: {sleep seconds} = pow({try}, {retry\_power})

NOTES
-----

[](#notes)

- This module is currently being written for PHP 5.4+ and Magento CE 1.8+ support only.
- When PHP 5.4 hits EOL, the minimum requirements will be updated to reflect this.

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity42

Moderate usage in the ecosystem

Community23

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 64.3% 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/a7c128588934775b07942f0a35a325d72cb06acb975f4527e20b4a20ded97d18?d=identicon)[fbrnc](/maintainers/fbrnc)

![](https://www.gravatar.com/avatar/960234235576bad43bcf26bd7618875f7aac66e5b86200a1339c648e55b8ad25?d=identicon)[LeeSaferite](/maintainers/LeeSaferite)

---

Top Contributors

[![LeeSaferite](https://avatars.githubusercontent.com/u/47386?v=4)](https://github.com/LeeSaferite "LeeSaferite (9 commits)")[![mpchadwick](https://avatars.githubusercontent.com/u/4132322?v=4)](https://github.com/mpchadwick "mpchadwick (2 commits)")[![fbrnc](https://avatars.githubusercontent.com/u/468820?v=4)](https://github.com/fbrnc "fbrnc (1 commits)")[![jadhub](https://avatars.githubusercontent.com/u/3472592?v=4)](https://github.com/jadhub "jadhub (1 commits)")[![tmotyl](https://avatars.githubusercontent.com/u/515397?v=4)](https://github.com/tmotyl "tmotyl (1 commits)")

### Embed Badge

![Health badge](/badges/aoepeople-aoe-dbretry/health.svg)

```
[![Health](https://phpackages.com/badges/aoepeople-aoe-dbretry/health.svg)](https://phpackages.com/packages/aoepeople-aoe-dbretry)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k117.2M118](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

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