Skip to content

[Issue] Optimize loading of media gallery when editing a product #33434

Closed
@m2-assistant

Description

@m2-assistant

This issue is automatically created based on existing pull request: #32818: Optimize loading of media gallery when editing a product


Description (*)

This PR aims to optimize the loading of the gallery tab when editing a product with many images, by avoiding redundant operations.

In a real-world example with a product with nearly 300 images, loading the gallery was more than 10 times faster after applying the changes.

Related Pull Requests

Fixed Issues (if relevant)

Manual testing scenarios (*)

  1. Create a product.
  2. Add or import a hundred images.
  3. Edit the product again, opening the gallery tab is (very) slow.

Questions or comments

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • README.md files for modified modules are updated and included in the pull request if any README.md predefined sections require an update
  • All automated tests passed successfully (all builds are green)

Metadata

Metadata

Assignees

Labels

Component: CatalogIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: doneReproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchSeverity: S3Affects non-critical data or functionality and does not force users to employ a workaround.

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions