Closed Bug 2042306 Opened 6 months ago Closed 5 months ago

Suboptimal indexes for the SQL statement [...] storage/mozStoragePrivateHelpers.cpp:112

Categories

(Core :: SQLite and Embedded Database Bindings, defect)

defect

Tracking

()

RESOLVED FIXED
154 Branch
Tracking Status
firefox154 --- fixed

People

(Reporter: Sylvestre, Assigned: Sylvestre)

References

(Blocks 1 open bug, Regressed 1 open bug)

Details

Attachments

(1 external file)

./mach run of main

[Parent 3976751, sqldb:places.sqlite #3] WARNING: Suboptimal indexes for the SQL statement 0x7fd326f1e200 (https://firefox-source-docs.mozilla.org/storage/warnings.html).: file storage/mozStoragePrivateHelpers.cpp:112

not sure how to detect the incorrect query

The severity field is not set for this bug.
:Sylvestre, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(sledru)

in a day, we see this warning 6 417 440 time in the CI

Flags: needinfo?(sledru)

The warning previously printed only the statement's memory address by
default, which is unactionable: it changes every run and cannot identify
which query needs an index. The SQL text was only emitted in custom builds
with MOZ_STORAGE_SORTWARNING_SQL_DUMP defined.

Always print the SQL text and sort operation count instead. sqlite3_sql()
returns the prepared statement, so bound parameters appear as ? placeholders
and no values are leaked. The MOZ_STORAGE_SORTWARNING_SQL_DUMP flag is
removed.

Assignee: nobody → sledru
Status: NEW → ASSIGNED

The severity field is not set for this bug.
:Sylvestre, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(sledru)
Pushed by sledru@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/2fe8754b16c3 https://hg.mozilla.org/integration/autoland/rev/e37a91a4a269 Always log the SQL text in the storage suboptimal-indexes warning r=dom-storage-reviewers,ArnaudBienner,hsingh
Status: ASSIGNED → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 154 Branch
Regressions: 2055966
Component: General → SQLite and Embedded Database Bindings
Product: Developer Infrastructure → Core
QA Whiteboard: [qa-triage-done-c155/b154]
Depends on: 2058952
No longer depends on: 2058952
See Also: → 2058952
Flags: needinfo?(sledru)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: