hensei-api/app
Justin Edmund be91c2c033 Optimize party loading by adding eager loading to set_from_slug
- Refactored `set_from_slug` to use `includes` for eager loading associated models:
  - `user`, `job`, `raid` (with `group`)
  - `characters` (with `character` and `awakening`)
  - `weapons` (with `weapon`, `awakenings`, `weapon_key1`, `weapon_key2`, `weapon_key3`)
  - `summons` (with `summon`)
  - `guidebooks` (`guidebook1`, `guidebook2`, `guidebook3`)
  - `source_party`, `remixes`, `skills`, and `accessory`
- This change improves query efficiency by reducing N+1 queries and ensures all relevant associations are preloaded.
- Removed redundant favorite check as it was not necessary in this context.
2025-02-09 18:00:14 -08:00
..
assets Implement embed images (#173) 2025-01-18 09:08:15 -08:00
blueprints/api/v1 Maintain API consistency with raid blueprint 2025-02-07 03:38:47 -08:00
controllers Optimize party loading by adding eager loading to set_from_slug 2025-02-09 18:00:14 -08:00
errors Implement wiki parsers (#121) 2023-08-19 23:05:32 -07:00
jobs More embed image bandaids (#175) 2025-01-18 22:32:13 -08:00
models Remove preview expiry constants 2025-02-07 01:59:53 -08:00
services Update logic and logs 2025-02-07 02:06:40 -08:00