nemke82 / inventoryoptimization
优化 inventory_reservation 表的模块
1.0.1-stable
2023-04-12 10:46 UTC
This package is auto-updated.
Last update: 2024-09-12 14:02:46 UTC
README
``nemke82/module-inventoryoptimization``
主要功能
通过添加物化视图和聚合表优化 inventory_reservation 表的模块。它还通过调用聚合数据视图重写了 Magento\Inventory\Model\ResourceModel\GetReservationsQuantity 核心功能。
安装
* = 在生产环境中请使用 --keep-generated 选项
类型 1:Zip 文件
- 将 Zip 文件解压到
app/code/Nemke82 - 通过运行
php bin/magento module:enable Nemke82_InventoryOptimization启用模块 - 通过运行
php bin/magento setup:upgrade应用数据库更新 * - 通过运行
php bin/magento cache:flush清除缓存
类型 2:Composer
- 通过运行
composer require nemke82/module-inventoryoptimization安装模块 composer - 通过运行
php bin/magento module:enable Nemke82_InventoryOptimization启用模块 - 通过运行
php bin/magento setup:upgrade应用数据库更新 * - 通过运行
php bin/magento cache:flush清除缓存
可以使用以下命令进行 PHP 单元测试
vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist vendor/nemke82/inventoryoptimization/Test/Unit/Plugin/Model/GetReservationsQuantityPluginTest.php