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
Remaining todos #4022
Conversation
… We are explicitely adding headers and methods that we allow.
…d back in as a new feature later
…d also change the RemoveFailedMessageRetryDocument to be batch oriented
.TransformToFailedMessageView(); | ||
|
||
await using (var ie = await session.Advanced.StreamAsync(query)) | ||
var query = session |
There was a problem hiding this comment.
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 👯♂️
No description provided.