Suboptimal indexes for the SQL statement [...] storage/mozStoragePrivateHelpers.cpp:112
Categories
(Core :: SQLite and Embedded Database Bindings, defect)
Tracking
()
| 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
Comment 1•6 months ago
|
||
The severity field is not set for this bug.
:Sylvestre, could you have a look please?
For more information, please visit BugBot documentation.
| Assignee | ||
Comment 2•5 months ago
|
||
in a day, we see this warning 6 417 440 time in the CI
| Assignee | ||
Comment 3•5 months ago
|
||
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.
Updated•5 months ago
|
Comment 4•5 months ago
|
||
The severity field is not set for this bug.
:Sylvestre, could you have a look please?
For more information, please visit BugBot documentation.
Comment 6•5 months ago
|
||
| bugherder | ||
Updated•4 months ago
|
Updated•4 months ago
|
Updated•4 months ago
|
| Assignee | ||
Updated•3 months ago
|
Description
•