Commit ce239c5
committed
filters: Resolve ids of Action Required states
It seems the database may sometimes refuse to use an index when values
used in a filter are not constant (i.e. come from a subquery).
I noticed this behaviour on MySQL when querying for patches in an Action
Required state, with the Archived filter set to Both.
Since the number of Action Required states is pretty much guaranteed
to be small, resolve their ids into a constant list.1 parent 1a7374b commit ce239c5
1 file changed
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | | - | |
249 | | - | |
250 | | - | |
| 248 | + | |
251 | 249 | | |
252 | 250 | | |
253 | 251 | | |
| |||
0 commit comments