Frequent "Suboptimal indexes for the SQL statement" warnings FROM moz_pages_w_icons
Categories
(Core :: SQLite and Embedded Database Bindings, defect, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr140 | --- | unaffected |
| firefox-esr153 | --- | unaffected |
| firefox153 | --- | unaffected |
| firefox154 | --- | wontfix |
| firefox155 | --- | wontfix |
People
(Reporter: mccr8, Unassigned)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: regression)
18,800 instances of "Suboptimal indexes for the SQL statement
`SELECT i.icon_url, i.id, i.expire_ms, i.data, i.width, i.root FROM moz_pages_w_icons pwi JOIN moz_icons_to_pages itp ON pwi.id = itp.page_id JOIN moz_icons i ON itp.icon_id = i.id JOIN moz_places p ON p.url_hash = pwi.page_url_hash WHERE p.rev_host = get_unreversed_host(:pageHost || '.') || '.' AND p.url BETWEEN :pageRoot || '/' AND :pageRoot || '/' || X'FFFF' ORDER BY p.frecency DESC, i.width DESC LIMIT 1` [1 sort operation(s)] (https://firefox-source-docs.mozilla.org/storage/warnings.html)."
emitted from checkouts/gecko/storage/mozStoragePrivateHelpers.cpp during macosx1015-64-qr debug testing
This is the second most common warning on MacOS.
This warning shows up in 33 test suites. A few of the most prevalent:
5461 - test-macosx1015-64-qr/debug-mochitest-browser-chrome-7 bc7
2749 - test-macosx1015-64-qr/debug-mochitest-browser-chrome-36 bc36
2490 - test-macosx1015-64-qr/debug-mochitest-browser-chrome-18 bc18
1550 - test-macosx1015-64-qr/debug-mochitest-browser-chrome-1 bc1
1488 - test-macosx1015-64-qr/debug-mochitest-browser-chrome-13 bc13
1175 - test-macosx1015-64-qr/debug-mochitest-browser-chrome-11 bc11
528 - test-macosx1015-64-qr/debug-mochitest-browser-chrome-32 bc32
507 - test-macosx1015-64-qr/debug-mochitest-browser-chrome-4 bc4
483 - test-macosx1015-64-qr/debug-mochitest-browser-chrome-42 bc42
347 - test-macosx1015-64-qr/debug-mochitest-browser-chrome-30 bc30
It shows up in 622 tests. A few of the most prevalent:
542 - Shutdown
483 - browser/components/urlbar/tests/browser-searchMode/browser_searchModeSwitcher_basic.js
380 - browser/components/urlbar/tests/quicksuggest/browser/browser_quicksuggest_indexes.js
364 - toolkit/components/translations/tests/browser/browser_translations_actor.js
347 - browser/components/urlbar/tests/browser/browser_inputHistory.js
316 - browser/components/urlbar/tests/browser/browser_hideHeuristic.js
302 - toolkit/components/translations/tests/browser/browser_translations_lang_tags.js
291 - browser/components/urlbar/tests/browser/browser_persist_searchMode.js
274 - browser/base/content/test/performance/browser_window_resize.js
240 - browser/components/urlbar/tests/browser/browser_oneOffs_searchSuggestions.js
| Reporter | ||
Comment 1•4 months ago
|
||
Mak, could this be a regression from bug 418144? I see that landed recently and looks at least a little similar and was not in the top list at least in February of this year when I last ran the warning scan. Thanks.
| Reporter | ||
Comment 2•4 months ago
|
||
Oh, maybe this isn't new. Looking at my notes, it appears that these warnings used to contain mzl.la URLs but now they just dump the entire SQL statement in there. The link is dead now, but the second most frequent warning on MacOS in January was some SQL statement warning.
Comment 3•4 months ago
•
|
||
This is a regression of Bug 2042306, that landed without my review (or a valid mozStorage peer review), I think it should be backed out.
Updated•4 months ago
|
Comment 5•4 months ago
•
|
||
Unfortunately there's no right fix, those warnings can be false positives, and it's not possible to examine every query. That's why it was kept short and people interested in debugging the queries could use the define, or match the address with the MOZ_LOG file.
If we'd be at a point where all (or most of) the queries were fixed or annotated, then it would be ok to enable full logging, as only new ones would appear, and then it would be ok to make them more noisy.
Comment 6•4 months ago
|
||
Set release status flags based on info from the regressing bug 2042306
Updated•3 months ago
|
Comment 7•3 months ago
|
||
The severity field is not set for this bug.
:mak, could you have a look please?
For more information, please visit BugBot documentation.
Updated•3 months ago
|
Updated•2 months ago
|
Description
•