Commit 8570839
committed
perf(solidus_admin): Sort by name in product controller
The name column has an index and it is the same default sorting as in solidus_backend. Remove distinct to reduce the response time even more. The view has no included left joins and it isn't necessary to filter duplicates.
This reduce the response time for database with 700000 products from 1 second to 67ms.1 parent c965562 commit 8570839
1 file changed
Lines changed: 3 additions & 2 deletions
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | | - | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
0 commit comments