The idea here is super simple - check how much is current attribute used and decide which can be removed from the shop to increase the performance and/or reduce database load. Script might be quite heavy to run at once, thus consider splitting it in two by commenting out some left joins and corresponding count selects.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am aboritskiy on github. | |
* I am aboritskiy (https://keybase.io/aboritskiy) on keybase. | |
* I have a public key ASA1HtFaV9H65HO0wuDSigZpBchwDzkQAecJV0FRA0AHvQo | |
To claim this, I am signing this object: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Sitewards\SyncURLs\Console\Command; | |
use \Symfony\Component\Console\Command\Command; | |
use \Symfony\Component\Console\Input\InputInterface; | |
use \Symfony\Component\Console\Output\OutputInterface; | |
use \Magento\Framework\App\Config\ConfigResource\ConfigInterface; | |
use \Magento\Store\Model\StoreManagerInterface; |
NewerOlder