Loading...
Loading...
Searchable solution documentation system with YAML frontmatter. Builds institutional knowledge from solved problems. Use proactively when consulting past solutions before investigating new issues.
npx skill4agent add oliver-kriska/claude-elixir-phoenix compound-docs.claude/solutions/
├── ecto-issues/
├── liveview-issues/
├── oban-issues/
├── otp-issues/
├── security-issues/
├── testing-issues/
├── phoenix-issues/
├── deployment-issues/
├── performance-issues/
└── build-issues/.claude/solutions/references/schema.md---
module: "Accounts"
date: "2025-12-01"
problem_type: runtime_error
component: ecto_schema
symptoms:
- "Ecto.Association.NotLoaded on user.posts"
root_cause: missing_preload
severity: medium
tags: [preload, association, n-plus-one]
---
# Association NotLoaded on User Posts
## Symptoms
Ecto.Association.NotLoaded raised when accessing user.posts
in UserListLive after filtering.
## Root Cause
Query in Accounts context missing preload for :posts.
## Solution
Added `Repo.preload(:posts)` to `list_users/1`.
## Prevention
Use n1-check skill before shipping list views.# Search by symptom
grep -rl "NotLoaded" .claude/solutions/
# Search by tag
grep -rl "tags:.*preload" .claude/solutions/
# Search by component
grep -rl "component: ecto" .claude/solutions//phx:compound/phx:investigate/phx:planlearn-from-fixreferences/schema.mdreferences/resolution-template.md