mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-07 22:46:06 +00:00
The implementation queried the database for each incoming variant that was changed. This rewrite combines ActiveRecord relations so that it creates only one query. This saves another 5-10% of execution time when updating enterprise fees on production instances.