Mailbox Search still very slow when dealing with a big mailbox
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1k
- Forks
- 348
- Avg merge
- 12h 28m
- Merged PRs (30d)
- 91
Description
Steps to reproduce
- Configure a mailbox that has a sizeable number of messages in it
- Search for any expression in "In Ordner suchen"
- Immediate answer is "Keine Nachricht"
- Wait Wait Wait .... messages will appear (search takes minutes, not seconds
Expected behavior
- Do not state "Keine Nachricht" but something like "Searching..."
- I should see first results in a second (like in my Thunderbird mail)
Actual behavior
As I mentioned and also mentioned in https://github.com/nextcloud/mail/issues/10503 before, search speed has not improved at all.
If I search using the global search, I get results a lot faster, but if I click on the search result and it takes me to Nextcloud Mail, I still have to wait minutes before it shows the email.
What can be done to improve this? It seems to be an issue for a while with different attempts to fix. For us it is now the number one issue with users complaining the mailbox search is not functioning.
Mail app version
5.6.9
Nextcloud version
31.0.7
Mailserver or service
Dovecot
Operating system
Debian
PHP engine version
None
Nextcloud memory caching
No response
Web server
None
Database
None
Additional info
As mentioned by another member, you cannot stop the search, it will continue in the background regardless if you cancelled and eventually freeze your Mail App (fix is to close the browser tab and open it again)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the search with a large mailbox and compare the Mail app search with the faster global search path described in the issue. Investigate why results take minutes, why an immediate “Keine Nachricht” appears, and why cancelled searches continue; done means responsive progress, prompt initial results, and searches that stop when cancelled.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, performance, search
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100