Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First import of 20K products in 17mins, second import takes about 1 hour. #73

Open
EnigmaWebdesign opened this issue Mar 9, 2020 · 5 comments

Comments

@EnigmaWebdesign
Copy link

EnigmaWebdesign commented Mar 9, 2020

// Provide a general summary of the issue in the Title above

Preconditions

// Provide a more detailed information about you Magento, Apache2/nginx, PHP & MySQL version
// Provide example CSV file to help us reproduce your issue
We're using Magento 2.2.7 on Apache2, PHP 7.1 & Mysql 5.7.29.

Steps to reproduce

// Provide a list of steps to reproduce this bug, include which plugins you use
// You can attach your magmi profile files stored in directory "{your Magento dir}/magmi/conf/{your profile name directory}
We have a fresh database, we take the CSV and import about 20K products. In 17 mins all data is imported.
screencapture-magmi

Actual result

// Tell us what happens instead - screenshot, logs etc.

The second time we import the same CSV file it takes about 1 to 1,5 hours to finish (sometimes it stuck at 97% or 99%).

Why is the import, running for a second time, taking so long to import?

Cheers,

Steve

@tmotyl
Copy link
Member

tmotyl commented Mar 9, 2020

Hi @EnigmaWebdesign
Please recheck your report.
There is no Magento 2.7. Also MySQL 4.9.4 is an ancient version, and I'm pretty sure Magento requires MySQL > 5.6

Please also attach additional data like magmi profile, as requested in the issue template.

@EnigmaWebdesign
Copy link
Author

Hi tmotyl,

My apolgies. I created this ticket when things got wicked in the office.
I fixed my Magento version and checked my MySQL version (now fixed) and I attached a screenshot of the current Magmi configuration.

Many thanks,

Steve

@EnigmaWebdesign EnigmaWebdesign changed the title Fisrt import of 20K products in 17mins, second import takes about 1 hour. First import of 20K products in 17mins, second import takes about 1 hour. Mar 9, 2020
@EnigmaWebdesign
Copy link
Author

I have checked with the hosting provider where the site is hosted. We are currently importing the CSV file (+/- 100MB) with option to create new products and update excisting ones.

This is what they saw in the logs:
280322 | plc2day_mro | localhost | plc2day_mro | Query | 0 | updating | DELETE FROM url_rewrite WHERE entity_id='7109' AND entity_type = 'product' AND is_autogenerated=1 | 0 | 339509 |

It does this constantly with every product. Question is, why are all product url's rewritten.
This shouldn't happen during import in my opinion.

@HOSTED-POWER
Copy link

It's indeed strange to see so many url rewrite delete going on when doing a "simple" update ;)

@EnigmaWebdesign
Copy link
Author

Ok,

I solved this one myself.
I unchecked On the fly indexer which was the one creating rewrites after the import.
Now it's working fine. I'm using the CLI interface since it's great to use with cronjobs.

Cheers,

Steve

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants