Hangs switching to unified folder inbox of 260k messages using folder mode settings, threads=All and `Search Online`. Also moving between folders in unified folder mode (example: from Inbox to Sent)
Categories
(Thunderbird :: Folder and Message Lists, defect, P3)
Tracking
(thunderbird_esr128+ affected, thunderbird134 fixed)
People
(Reporter: Aureliano, Assigned: darktrojan, NeedInfo)
References
Details
(Keywords: hang, perf, Whiteboard: [snnot3p][has profile])
Attachments
(1 file)
48 bytes,
text/x-phabricator-request
|
corey
:
approval-comm-beta+
|
Details | Review |
STRs:
- starts TB and switch to Unified Folders: there is a delay about 10"
- set message threads on and set to All;
- switch to All Folder view and toggle Unified Folders to off;
- close TB
- starts TB and switch to Unified Folders: there is a delay about 56"
Here profiling as permalink https://share.firefox.dev/40F0Y79
TB 113.0b4
Reporter | ||
Updated•2 years ago
|
Updated•2 years ago
|
Comment 1•2 years ago
|
||
Aurelio, is it better in Beta 113.0b5 (64-bit) where bug 1817367 has been fixed?
Reporter | ||
Comment 2•2 years ago
|
||
Ciao Thomas, I don't know the answer, because until now I've tried bug #1817367 always with views-threads set to off. The observed result [with views-threads set to off], after the fix, is the one described in my comment https://bugzilla.mozilla.org/show_bug.cgi?id=1817367#c43
Trying (post fix) also with views-threads set to on, I encountered the performance problems described here.
Reporter | ||
Comment 3•2 years ago
|
||
I can confirm this issue also in 114.0a1 (2023-05-04) (64-bit)
Reporter | ||
Comment 4•2 years ago
|
||
The problem still persists in version 114.0beta3. Here the profiling result as permalink https://share.firefox.dev/42N6C9b
Related to nsThread::ProcessNextEvent ?
Updated•2 years ago
|
Reporter | ||
Updated•2 years ago
|
Assignee | ||
Comment 6•1 years ago
|
||
How many messages are we talking about here? From the profile's screen shots it looks like your combined inbox has a 5-figure total, but it's hard to tell. I've been testing with a combined 70,000 messages and the busiest functions in your profile are not problematic for me.
Are you also hitting bug 1836393? It looks like you might be, and that could be related. I don't see that problem either.
I don't suppose you know if the same problem existed in 102, do you?
Reporter | ||
Comment 7•1 years ago
•
|
||
(In reply to Geoff Lankow (:darktrojan) from comment #6)
How many messages are we talking about here?
Hi Geoff.
My 'Inbox on Unified Folders' has around 260k emails. This issue isn't a regression, because it behaves the same way in TB 102 as well.
Upon further investigation, I have verified that by selecting my 'Inbox on Unified Folders', there is high online traffic to my accounts' IMAP servers. Going to the 'Inbox on Unified Folders' virtual folder, I saw that the option 'Search Online (Gives up-to-date results for IMAP etc...)' is selected by default. By setting 'Search Online (Gives up-to-date results for IMAP etc...)' to false, I no longer have the performance problems mentioned here.
This ticket should be considered Invalid, as the performance of a search on an IMAP server depends on the IMAP server itself and not from TB?
For end users, it should be documented that in the 'Inbox on Unified Folders', the flag 'Search Online (Gives up-to-date results for IMAP etc...)'
is it true by default so there might be performance issues with large Inboxes?
Other ideas?
Thank you.
Comment 8•1 year ago
|
||
Aureliano, thanks for the update.
Dropping from supernova list based on comment 7
Reporter | ||
Comment 10•1 year ago
|
||
(In reply to Wayne Mery (:wsmwk) from comment #9)
Aureliano, Does this happen with latest beta?
Unfortunately no, the problem is still here and makes the Unified Folders mode unusable in my case.
118.0b4 (64-bit) on Windows 11
Comment 11•1 year ago
|
||
(In reply to [:Aureliano Buendía] from comment #10)
(In reply to Wayne Mery (:wsmwk) from comment #9)
Aureliano, Does this happen with latest beta?
Unfortunately no, the problem is still here and makes the Unified Folders mode unusable in my case.
118.0b4 (64-bit) on Windows 11
For every unified folder type?
Tried repairing any of the subfolders?
Comment 12•1 year ago
|
||
Using config editor try setting mail.db.max_open and mail.db.idle_limit to larger values. For example doubled.
Comment 13•8 months ago
|
||
Basically 100% of the activity is DOM related, specifically the stack is
nsMsgSearchDBView::AddHdrFromFolder
nsMsgSearchDBView::MoveThreadAt
nsMsgDBView::CollapseByIndex
nsMsgSearchDBView::RemoveRows
nsCOMArray_base::RemoveObjectAt
...
So changing mail.db.max_open or mail.db.idle_limit will not help here.
Comment 14•8 months ago
•
|
||
Aureliano, to what degree do you still see this problem?
Reporter | ||
Comment 15•8 months ago
|
||
Hi Wayne, 'Unified Folders' continues to be unusable in production also fro TB 126.0b1 (64-bit) on Windows 11. Here the profiling result as permalink https://share.firefox.dev/3Uc3jFv
Comment 16•8 months ago
|
||
Is it still true that this only happen when you have Search Online
enabled? (which is the default)
Two open bug reports cite Search online
https://bugzilla.mozilla.org/buglist.cgi?quicksearch=1098069%201757315&list_id=17004189
Reporter | ||
Comment 17•8 months ago
|
||
(In reply to Wayne Mery (:wsmwk) from comment #16)
Is it still true that this only happen when you have
Search Online
enabled? (which is the default)
Yes, it is.
Comment 18•7 months ago
|
||
Does it help to disable status bar at View > Toolbars ?
Reporter | ||
Comment 19•7 months ago
|
||
No Wayne, I have the same problem even without status-bar: TB in that case is not usable.
TB 126.0b3 (64-bit) on Windows 11
Comment 20•24 days ago
|
||
Aureliano, does this still reproduce for you when using a current beta?
Reporter | ||
Comment 21•12 days ago
|
||
Hi Wayne, still unusable. TB 133.0b5 (64-bit) on Windows 11
https://share.firefox.dev/3YX9cbO here the permalink for profiling the issue.
Assignee | ||
Comment 22•11 days ago
|
||
I think I can virtually eliminate the big grey chunks in that profile. nsMsgDatabase::GetSearchResultsTable
is called over and over again and I can't think of a reason why we'd expect a different result, so let's do it once and remember the result. I'm running all of our tests to find out if that breaks anything.
Assignee | ||
Comment 23•11 days ago
|
||
Updated•11 days ago
|
Assignee | ||
Comment 24•9 days ago
|
||
Let's get this shipped. It fixes the larger part of the problem. I'm not sure what we can do about the other part which is the ordering of search results. Fortunately this problem will disappear when we get our new database.
Thanks for your patience Aureliano. Hopefully this will feature will be somewhat more bearable for you.
Comment 25•9 days ago
|
||
Pushed by sean@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/b912eb902e6d
Cache search results tables and charsets. r=mkmelin
Updated•9 days ago
|
Assignee | ||
Comment 27•3 days ago
|
||
Comment on attachment 9439925 [details]
Bug 1830145 - Cache search results tables and charsets. r=#thunderbird-back-end-reviewers
[Approval Request Comment]
Regression caused by (bug #): always like this
User impact if declined: huge virtual folders could be very slow for no real reason
Testing completed (on c-c, etc.): it's been on central 6 days but there's not actually been a Daily build with it
Risk to taking this patch (and alternatives if risky): low
Comment 28•3 days ago
|
||
Comment on attachment 9439925 [details]
Bug 1830145 - Cache search results tables and charsets. r=#thunderbird-back-end-reviewers
[Triage Comment]
Approved for beta
Comment 29•3 days ago
|
||
bugherder uplift |
Thunderbird 134.0b3:
https://hg.mozilla.org/releases/comm-beta/rev/247c626de65b
Reporter | ||
Comment 30•2 days ago
|
||
Hi Geoff, I did tests on 134.0b3 (64-bit) Windows 11 Pro: it's much better but it's still not usable in a production environment. Looking forward to releasing of new database structure. Thanks!
Comment 31•2 days ago
|
||
(In reply to Geoff Lankow (:darktrojan) from comment #24)
I'm not sure what we can do about the other part which is the ordering of search results. Fortunately this problem will disappear when we get our new database.
Thanks Geoff. What ordering are you referring to, something happening in mork? Or Gloda?
Good enough for now for 128?
Comment 32•2 days ago
|
||
Aureliano, thanks for that feedback.
Have a look at https://mzl.la/4gjtDa9 - are there any that at least partly describe what remains of problem?
Updated•12 hours ago
|
Description
•