Commit 86242c9
committed
feat(products): eager load values in product filters query
## Context
A product can have thousands of filters, each serialized with its
values and their billable metric filters. Resolving those per row causes an
N+1 on every paginated page.
## Description
Eager load values and their billable_metric_filter in
ProductFiltersQuery so both the GraphQL and REST list endpoints avoid
the N+1 when rendering filter values.1 parent aef7943 commit 86242c9
3 files changed
Lines changed: 498 additions & 498 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
0 commit comments