Commit 4440a8b
Optimize taxonomy <> collection queries (#376)
* wip
* pluck the slug
* use whereIn and wrap column
* test match driver
* test match driver
* support pgsql
* remove todo
* fix typo in variable name
* refactor
* Use config'd models
* Some more co-ercing
* 🍺
* update comment
* add case for postgress
* add test case for TermQueryBuilder where entries.driver is file
* cleanup dump
* We can't assume that the taxonomy is held in data now
---------
Co-authored-by: Bram de Leeuw <[email protected]>
Co-authored-by: Ryan Mitchell <[email protected]>1 parent 01b187d commit 4440a8b
File tree
2 files changed
+39
-1
lines changed- src/Taxonomies
- tests/Data/Taxonomies
2 files changed
+39
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
222 | 224 | | |
223 | 225 | | |
224 | 226 | | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
225 | 253 | | |
226 | 254 | | |
227 | 255 | | |
228 | 256 | | |
229 | 257 | | |
230 | 258 | | |
231 | | - | |
| 259 | + | |
232 | 260 | | |
233 | 261 | | |
234 | 262 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
210 | 220 | | |
211 | 221 | | |
212 | 222 | | |
| |||
0 commit comments