Expire preview text and AI summaries
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1k
- Forks
- 348
- Avg merge
- 12h 28m
- Merged PRs (30d)
- 91
Description
Is your feature request related to a problem? Please describe.
As a Nextcloud Mail admin, I want to contain the database usage of my Nextcloud installation. oc_mail_messages has many text columns, which take the bigger share of the table size.
Describe the solution you'd like
Depending on how the user sorts their messages we know what data is hot/cold. Use that as heuristic to find cold rows, and set their preview text and AI summary to null.
Regenerate the data if the user accesses the messages again (via search, scrolling).
Describe alternatives you've considered
N/a
Additional context
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
Review the referenced PR #12633 and the oc_mail_messages data first. Trace how sorting, search, and scrolling access messages, then define cold-row expiry and regeneration behavior. Done means preview text and AI summaries can be cleared for cold rows and recreated when messages are accessed again, with coverage for those paths.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, php
- Domain
- ai, backend, databases
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100