Skip to content

chore(persistence): Review lazy/eager and cascade settings for core entities #15

@ArchILLtect

Description

@ArchILLtect

Problem / context

We need to confirm fetch/cascade settings to avoid N+1 or orphan records during submissions and deletes.

Proposed solution

Review entities and annotate fetch/cascade explicitly where needed (e.g., submissions under challenge; drillItem relationships).

In scope / Out of scope

In scope

  • Audit mappings and adjust fetch/cascade; add a couple of DAO tests to assert cascades.

Out of scope

  • Performance tuning beyond fetch mode sanity.

Acceptance criteria

  • No unexpected orphan rows on delete
  • Reasonable defaults for fetch; no major N+1 in common paths

Area

area:persistence

Dependencies / related issues

Test Coverage issue for DAO behaviors if updated

Checklist

  • I’ve checked existing issues for duplicates.
  • I can help implement this and open a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:persistenceEntities, DAOs, JPA/Hibernate mappings, and database concerns.enhancementNew feature or requestpost-mvpUse for all issues/PRs that do not belong to the MVP release. Will be implement post-MVP.priority:P3-lowNice-to-have or non-blocking; schedule as time permits.status:triageNewly filed or uncategorized. Needs initial review, labeling, and priority assignment.

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions