Commit f00b522
committed
perf: remove images eager load from list and search endpoints
main_image_url is now stored directly on world_heritage_sites, so
thumbnail_url resolves from that column without touching world_heritage_site_images.
Loading the images relation on every list/search page was a redundant query
since the fallback to images[0].url is never reached for sites that have
main_image_url populated.
The detail endpoint (getHeritageById) retains its full images eager load
because it renders the complete image gallery.
Closes #465
Part of #4631 parent e7e30ec commit f00b522
2 files changed
Lines changed: 0 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | 61 | | |
65 | 62 | | |
66 | 63 | | |
| |||
Lines changed: 0 additions & 3 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 | | |
| |||
0 commit comments