spring-projects / spring-projects/spring-data-relational
Explore association upserts
Open
Nobody has claimed this yet.
type: enhancement
- Dominant language
- Java
- Stars
- 827
- Forks
- 394
- PR merge metrics
- No merged PRs in 30d
Description
We should explore whether we can leverage upserts for updating associations instead of delete+reinsert. We could upsert all known associations and delete all association rows excluding these that need to remain persistent.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files or tests. Start by locating the association update path and reviewing how it currently performs delete-and-reinsert operations. Done means establishing whether upserts are viable, preserving persistent association rows, and documenting or implementing the agreed approach.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100