Skip to content

fix(xmpp): Optimize MAM history fetching - #2208

Merged
jubalh merged 1 commit into
masterfrom
devmam
Aug 25, 2026
Merged

jubalh merged 1 commit into
masterfrom
devmam

Conversation

@jubalh

@jubalh jubalh commented Aug 25, 2026

Copy link
Copy Markdown
Member

The MAM response handler requeried the local message database for the entire date range with every single page of results received from the server.

When fetching a large archive that spanned multiple pages, this resulted in many slow and redundant lookups

It now waits for the full response to be received from the server before performing a single query against the local database.

Ref: #2198

@jubalh jubalh added this to the next milestone Aug 25, 2026
@jubalh jubalh self-assigned this Aug 25, 2026
The MAM response handler requeried the local message database for the entire
date range with every single page of results received from the server.

When fetching a large archive that spanned multiple pages, this resulted
in many slow and redundant lookups

It now waits for the full response to be received from the server before
performing a single query against the local database.

Ref: #2198
Signed-off-by: Michael Vetter <jubalh@iodoru.org>
@jubalh
jubalh merged commit 538a154 into master Aug 25, 2026
12 checks passed
@jubalh
jubalh deleted the devmam branch August 25, 2026 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant