nemke82/inventoryoptimization

优化 inventory_reservation 表的模块

安装: 1

依赖: 0

建议者: 0

安全: 0

星星: 1

观察者: 1

分支: 0

公开问题: 0

类型:magento2-module

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