1. Chris Moffitt
  2. satchmo
  3. Issues
Issue #1312 open

ProductVariation performance improvement

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