Gather the search index at a slower pace #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/slower-index-gathering"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What & why
The background search-index crawler rested only 150 ms between 100-event batches and paced each room independently, so a catch-up run fired six or seven back-pagination requests a second — for work the user never asked for. This PR paces the crawl like Element Desktop's search crawler instead: one batch per pass with rooms taking turns, and a three-second rest after every request no matter the room, so the catch-up emits at most one back-pagination request every three seconds however many rooms are behind. The batch size (100 events) and five-second idle wait already matched Element.
Verify
cargo check -p madre-coreView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.