## ADDED Requirements ### Requirement: Optimized Relationship Loading The system SHALL use efficient query patterns to avoid N+1 query problems when loading related entities. #### Scenario: Project member list loading - **WHEN** loading a project with its members - **THEN** the system SHALL load all members in at most 2 database queries - **AND** NOT one query per member #### Scenario: Task assignee loading - **WHEN** loading a list of tasks with their assignees - **THEN** the system SHALL batch load assignee details - **AND** NOT query each assignee individually #### Scenario: Query count monitoring - **WHEN** running in development mode - **THEN** the system SHALL log query counts per request - **AND** warn when query count exceeds threshold (e.g., 10 queries)