Commit 819f84e
committed
Add index creation step to CI for aggregation performance
Create index on comments.movie_id after data restore to fix the
/reportingByComments aggregation timeout. Without this index, the
$lookup operation performs a full collection scan (41K comments x 21K
movies) causing 5+ minute response times in CI vs ~700ms locally.1 parent 56a2f3c commit 819f84e
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
44 | 48 | | |
45 | 49 | | |
46 | 50 | | |
| |||
0 commit comments