spree/spree — pull request #5567 by mbj (2014-11-04 02:31:52+00:00)
Title: Pass item to Adjustment#update to avoid N+1

This simple change utilizes a property of `Adjustment#update!` where you can pass in the adjustable to avoid a lazy load lookup. Reducing an N+1 instance with a small, but under load measurable performance improvement. It has no semantic changes.

I'd like to see this backported to at least 2-3-stable.