Skip to content

feat: refactor sending email flow#278

Merged
haiphucnguyen merged 1 commit intoflowinquiry:mainfrom
caominhduc52:feature/seek-based-pagination-refactor
Oct 27, 2025
Merged

feat: refactor sending email flow#278
haiphucnguyen merged 1 commit intoflowinquiry:mainfrom
caominhduc52:feature/seek-based-pagination-refactor

Conversation

@caominhduc52
Copy link
Copy Markdown
Contributor

@caominhduc52 caominhduc52 commented Oct 26, 2025

Description

Refactor SendEmailForTicketOverdue to use seek based pagination approach

#253

Changes Made

  • A new query to find overdue tickets
  • Refactor SendEmailForTicketOverdue service

Additional Notes

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Oct 26, 2025

CLA assistant check
All committers have signed the CLA.

@caominhduc52 caominhduc52 force-pushed the feature/seek-based-pagination-refactor branch from b369812 to fffcb8f Compare October 26, 2025 08:44
@caominhduc52
Copy link
Copy Markdown
Contributor Author

caominhduc52 commented Oct 26, 2025

Hi a @haiphucnguyen kindly help me to review this PR and grant CI permission to run

image

Copy link
Copy Markdown
Collaborator

@haiphucnguyen haiphucnguyen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @caominhduc52 for your contribution. LGTM

LIMIT :size
"""
)
List<Ticket> findOverdueTicketsAfterId(@Param("id") Long id, @Param("size") int size);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This sparked an idea for a follow-up improvement: the current query (and the previous one) isn't optimized for performance due to missing indexes. I've created a follow-up ticket to add the necessary indexes. Do you want to take a look? 😊

@haiphucnguyen
Copy link
Copy Markdown
Collaborator

Hi a @haiphucnguyen kindly help me to review this PR and grant CI permission to run

image

Sure

@haiphucnguyen haiphucnguyen merged commit 0e618bc into flowinquiry:main Oct 27, 2025
6 of 8 checks passed
@caominhduc52 caominhduc52 deleted the feature/seek-based-pagination-refactor branch October 30, 2025 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants