Skip to content
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

Remaining todos #4022

Merged
merged 6 commits into from Mar 22, 2024
Merged

Remaining todos #4022

merged 6 commits into from Mar 22, 2024

Conversation

danielmarbach
Copy link
Contributor

No description provided.

.TransformToFailedMessageView();

await using (var ie = await session.Advanced.StreamAsync(query))
var query = session
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mauroservienti you have a bit more knowledge about RavenDB. This whole thing is weird. We basically pulled down the entire FailedMessage to then just use the UniqueMessageId. Then we bring that up to the outer layers which then iterates through those, creates FailedMessageRetry Ids to then delete them 1:1. Horrible. I tried to do a DeleteByQuery but that doesn't work to my knowledge since the collection I query from and have to delete from are different. So I tried to at least materialize less from the server.

As a next small improvement, we could change the RemoveFailedMessageRetryDocument accept a number of IDs. I was thinking a bit about streaming IDs back and then the outer layers doing batch deletes per stream, but I wasn't sure of the implications of that whole change, since we would keep the cursor open while we are trying to delete batch deletes.

This TODO is a bit of a rabbit hole and not even from us 👯‍♂️

@danielmarbach danielmarbach marked this pull request as ready for review March 21, 2024 13:39
@danielmarbach danielmarbach merged commit 7f83336 into master Mar 22, 2024
19 checks passed
@danielmarbach danielmarbach deleted the remaining-todos branch March 22, 2024 09:13
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.

None yet

2 participants