mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-12 03:50:22 +00:00
With the help of the bullet gem, and since we remove a couple of N+1s already, remove them all was just a few keystrokes away. This commits gets us from 42 SQL queries to 17, and 364.5ms to 253.9ms on my machine where I just have the sample data's orders. As usual, this will have a much bigger impact in scenarios with more data.