Closed
Bug 1208666
Opened 10 years ago
Closed 9 years ago
2,000 instances of "WARNING: Suboptimal indexes for the SQL statement" caused by SQL statements in nsDiskCacheDeviceSQL.cpp during linux64 debug testing
Categories
(Core :: Networking: Cache, defect)
Core
Networking: Cache
Tracking
()
RESOLVED
WONTFIX
| Tracking | Status | |
|---|---|---|
| firefox44 | --- | affected |
People
(Reporter: erahm, Unassigned)
References
Details
(Whiteboard: [necko-would-take])
Two SQL statements [1,2] are responsible for about 2,000 warnings during debug testing. We should either add an appropriate index to these tables or add the |/* do not warn (bug ... */| annotation to these.
The warnings:
> 996 - [NNNNN] WARNING: Suboptimal indexes for the SQL statement `SELECT ClientID, ItemType FROM moz_cache WHERE Key = ? ORDER BY LastFetched DESC, LastModified DESC;` [1 sort operation(s)] (http://mzl.la/1FuID0j).: file storage/mozStoragePrivateHelpers.cpp, line 110
> 984 - [NNNNN] WARNING: Suboptimal indexes for the SQL statement `SELECT ns.ClientID, ns.ItemType FROM moz_cache_namespaces AS ns JOIN moz_cache_groups AS groups ON ns.ClientID = groups.ActiveClientID WHERE ns.NameSpace <= ?1 AND ?1 GLOB ns.NameSpace || '*' ORDER BY ns.NameSpace DESC, groups.ActivateTimeStamp DESC;` [1 sort operation(s)] (http://mzl.la/1FuID0j).: file storage/mozStoragePrivateHelpers.cpp, line 110
[1] https://dxr.mozilla.org/mozilla-central/rev/5abe3c4deab94270440422c850bbeaf512b1f38d/netwerk/cache/nsDiskCacheDeviceSQL.cpp#1257
[2] https://dxr.mozilla.org/mozilla-central/rev/5abe3c4deab94270440422c850bbeaf512b1f38d/netwerk/cache/nsDiskCacheDeviceSQL.cpp#1261-1265
Updated•9 years ago
|
Whiteboard: [necko-would-take]
Comment 1•9 years ago
|
||
Appcache code.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•