Issue #1312 open

ProductVariation performance improvement

VladOrlenko
created an issue

ProductVariation.save() iterates over existing options to ensure there's no duplication. This results in one SELECT per existing variation record. With a large number of product variations, this makes saving new variants very slow.

Attached patch offers a speed-up with the same check against duplication in one query instead of multiple.

Comments (4)

  1. Log in to comment