Skip to content

Huge memory usage when importing large quantities of products #10914

@diwipl

Description

@diwipl

When importing huge amounts of products Magento 2 is loading contents of importexport_importdata to memory and then iterate it in memory which results in huge memory usage

Preconditions

  1. Magento 2.1.7
  2. CSV with 1 500 000 products

Steps to reproduce

  1. Validate 1 500 000 products
  2. Run import

Expected result

  1. Memory usage for iterating trough import data should be constant

Actual result

  1. Whole table contents is loaded to memory

Metadata

Metadata

Assignees

Labels

Component: ImportExportIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.1.xThe issue has been reproduced on latest 2.1 releaseReproduced on 2.2.xThe issue has been reproduced on latest 2.2 release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions