Commit 389218d
committed
perf(solidus_admin): Reduce N+1 queries for order index
There was a N+1 query in order index view. For each row the quantity of the line items was fetched. It is now included and reduces the amount of SQL queries.
This change reduced the loading time of 8M orders from 836ms to 520ms.1 parent 2dc22af commit 389218d
2 files changed
Lines changed: 2 additions & 2 deletions
File tree
- admin/app
- components/solidus_admin/orders/index
- controllers/solidus_admin
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
| 165 | + | |
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
0 commit comments