Commit 04f2164
Optimize admin.php question loading to remove N+1 query. (#14)
- Replaced loop-based answer fetching with batch fetching.
- Reduced DB queries from N+1 to 2 (chunks of 500).
- Validated with benchmark showing ~5x performance improvement.
- Verified output correctness.
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: xRahul <1639945+xRahul@users.noreply.github.com>1 parent 248495e commit 04f2164
1 file changed
Lines changed: 25 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
253 | | - | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
254 | 276 | | |
255 | 277 | | |
256 | 278 | | |
| |||
296 | 318 | | |
297 | 319 | | |
298 | 320 | | |
299 | | - | |
300 | | - | |
| 321 | + | |
301 | 322 | | |
302 | 323 | | |
303 | 324 | | |
304 | 325 | | |
305 | 326 | | |
306 | 327 | | |
307 | 328 | | |
308 | | - | |
| 329 | + | |
309 | 330 | | |
310 | 331 | | |
311 | 332 | | |
| |||
0 commit comments