shangeyao opened a new issue, #4390:
URL: https://github.com/apache/streampark/issues/4390

   ## Problem
   `ApplicationBackUpCleanTask` performs N+1 queries: one grouped query per app 
id, then loads all backups per app and deletes them one-by-one with 
`removeById`.
   
   ## Proposed solution
   - Load all backups in a single query
   - Group and trim in memory per application id
   - Delete expired records with one `removeByIds` batch call


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to