Files
openfoodnetwork/app/services
Pau Perez 20a7f2f24e Eager load payment and subs. order associations
This removes the N+1 queries caused by
`Api::Admin::OrderSerialier#ready_to_capture` when used from
`Api::OrdersController#index`. While it's fine for the single-order
controller actions, it's not for this one that deals with a collection
of orders.

Fortunately, `SearchOrders` is used only in this controller action so we
can put the `includes` calls there, otherwise, we would need to refactor
it a bit to pass in a context-specific AR relation.
2021-02-23 10:26:12 -08:00
..
2021-02-02 23:04:12 +00:00
2021-02-01 16:38:40 +01:00
2020-06-22 17:39:20 +01:00
2021-02-12 13:46:05 -08:00
2019-11-10 18:42:43 +00:00