2
votes
Accepted
Magento2.3.5: How to optimize product export scripts?
I recommend to use standard performance improvement loop:
Testing (profiling)
Find bottleneck
Fix it
and repeat
https://github.com/NoiseByNorthwest/php-spx is good for quick start
For example
app:/...
1
vote
Magento2.3.5: How to optimize product export scripts?
Your script looks quite comprehensive, and it's good that you are considering optimization. Here are some suggestions to optimize and improve your script:
1. Use Dependency Injection:
Instead of using ...
1
vote
Magento2.3.5: How to optimize product export scripts?
Start by not using object manager but dependency injectrion.
Then in term of performance i would say
The closest you are from the system the fastest it is.
That means accessing threw repositories will ...
1
vote
Our Magento website show file log name like debug.log-20231106.gz, Where and how can I change it?
You're correct, this is a behavior related to the system (server) and not Magento.
Automated file compression can be achieved through various methods, such as using logrotate or adding a cron job.
It ...
1
vote
Magento2.3.5: How to remove index.php and theme id from url?
Go to Admin -> System -> Configuration -> Web -> Search Engine Optimisation -> Web Server Rewrites : YES.
You should make sure that your Secure and Unsecure base urls end with "/&...
1
vote
Accepted
CollectRates() in getAllItems() is empty
Problem is with json_encode. Use json_encode on item level.
foreach ($request->getAllItems() as $item){
$this->_logger->info('COLLECT RATES 2 '. json_encode($item->getData()...
1
vote
Magento2.4.3: While importing products, getting this error (The value specified in the URL Key field would generate a URL that already exists)?
it can be problem with url_rewrite table. When you want to solve problem, pls check few points:
Whether url_key in existing products is unique
Whether url_key in product which you want to import is ...
1
vote
Magento 2.4 Unable to apply data patch: Area code is not set
I have face same issue into the installData, so i have use this solution and now it's working fine please try this.
public function __construct(
...
\Magento\Framework\App\State $state
) {
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
magento2.4 × 1710magento2 × 778
magento2.3 × 185
magento-2.1 × 72
magento2.2 × 67
elasticsearch × 63
magento2.4.2 × 51
php × 49
database × 41
javascript × 39
magento2.4.5 × 39
checkout × 38
magento2.4.3 × 37
product × 32
admin × 31
magento2.4.4 × 27
composer × 26
installation × 24
magento-upgrade × 23
product-attribute × 22
magento2.4.1 × 22
css × 21
rest-api × 21
event-observer × 20
customer × 20