-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix CleanupExpiredMessages Error (#4810) #4980
base: main
Are you sure you want to change the base?
Fix CleanupExpiredMessages Error (#4810) #4980
Conversation
@dotnet-policy-service agree |
Hello @faith0831 , thank you for submitting a PR. Can you explain what the issue is and how this PR fixes that? I noticed that it removes the use of the pagination args, which might have other consequences. |
@sfmskywalker It is related to #4810 for MySQL as LIMIT is not supported in sub queries. However, I'm not sure if removing the pagination is the way to go as it seems to be possible to replace the subquery with a LEFT JOIN. I didn't get the chance to test that though. @faith0831 is it possible to use a LEFT JOIN instead of getting rid of pagination completely? |
@mohdali I see, thanks for the clarification. We shouldn't drop paging support because it might negatively impact other users that use other database servers and where doing a batched deletion of workflow inbox messages is preferred (in case of high numbers of records). Additionally, if the paging SQL clauses cause an issue for MySQL for the WorkflowInbox table, it will also be an issue for all other DB tables, which means that this PR might "fix" one affected area, it will not fix the root issue. |
@mohdali Thank you for your assistance, I will continue to try to solve this problem. |
Thank you for your reply @sfmskywalker, this PR indeed has the issues you pointed out. |
@faith0831 @mohdali Should we keep this PR open, change it to Draft, or abandon? |
@sfmskywalker we need to change how the MySql query for clearing the inbox is executed. I didn't get the time to check the possible solution. I think this PR can be changed to draft. |
Quality Gate passedIssues Measures |
@sfmskywalker In order to resolve this issue we need to change the In that case, what is the recommended approach? Show we create a new I think in general there will be some exceptions like this depending on each DB capabilities, we need to have a clear pattern to handle those cases. |
This change is