mateuszbieniek/ezplatform-database-health-checker
Composer 安装命令:
composer require mateuszbieniek/ezplatform-database-health-checker
包简介
Allows to check the project's database against most common issues
README 文档
README
This bundle allows you to check your database against know database corruption and fix them.
Also, you can perform a Smoke Test on your project to determine if all Contents are accessible (ignoring permissions).
The additional functionality is cleaning up your database from leftovers left by ezplatform-page-fieldtype bundle.
Supported database corruptions:
- Content without version (fixed by removing corrupted content)
- Content without attributes (fixed by removing corrupted content)
- Content with duplicated attributes (fixed by removing duplicated attributes)
- Page FieldType related records which are unnecessary and cause flooding
Usage
The following bundle introduces two commands: ezplatform:database-health-check and ezplatform:page-fieldtype-cleanup.
Fixing corruptions will modify your database! Always perform the database backup before running those commands!
After running those commands it is recommended to regenerate URL aliases, clear persistence cache and reindex.
ezplatform:database-health-check
Bundle adds db-checker SiteAccess with cache_pool set to NullAdapter
so no SPI cache is used when retrieving Content from the database during Smoke Test.
If corruption is found, you will be asked if you want to fix it.
All Content's location will be checked for subitems, before removing it. In the case of existing subitems, you will be presented with an option to swap location with a different one, so subitems are preserved (Content won't be deleted after swap so script has to be re-run if you wish to delete corrupted Content).
php -d memory_limit=-1 bin/console ezplatform:database-health-check --siteaccess=db-checker
Please note that Command may run for a long time (depending on project size). You can speed it up by skipping Smoke Testing with --skip-smoke-test option.
ezplatform:page-fieldtype-cleanup
Warning! This command is only available for Enterprise versions of the platform.
This command searches your database for ezpage_* records which are leftovers from https://issues.ibexa.co/browse/EZEE-3430
and deletes them if necessary to prevent uncontrolled growth of the database.
php -d memory_limit=-1 bin/console ezplatform:page-fieldtype-cleanup
Installation
Requirements
This bundle requires eZ Platform 2.5+
1. Enable EzPlatformDatabaseHealthCheckerBundle
Edit app/AppKernel.php, and add
$bundles[] = new MateuszBieniek\EzPlatformDatabaseHealthCheckerBundle\EzPlatformDatabaseHealthCheckerBundle();
at the end of list of bundles in dev environment.
2. Install mateuszbieniek/ezplatform-database-health-checker
composer require mateuszbieniek/ezplatform-database-health-checker
mateuszbieniek/ezplatform-database-health-checker 适用场景与选型建议
mateuszbieniek/ezplatform-database-health-checker 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 11.04k 次下载、GitHub Stars 达 4, 最近一次更新时间为 2020 年 02 月 05 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 mateuszbieniek/ezplatform-database-health-checker 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 mateuszbieniek/ezplatform-database-health-checker 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 11.04k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-02-05