Closed
Bug 2017227
Opened 3 months ago
Closed 3 months ago
Reduce the impact of Database::Shutdown currently doing a "PRAGMA optimize(0x02)"
Categories
(Toolkit :: Places, enhancement)
Toolkit
Places
Tracking
()
RESOLVED
FIXED
149 Branch
| Tracking | Status | |
|---|---|---|
| firefox149 | --- | fixed |
People
(Reporter: jstutte, Assigned: jstutte)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
PRAGMA optimize(0x02) was introduced by bug 1354032, before SQLite introduced the analysis limit. We can reduce the impact of analysis on large databases by using the mask 0x12 instead.
| Assignee | ||
Comment 1•3 months ago
|
||
PRAGMA optimize(0x02) replaces the default mask (0x0fffe), which
disables the 0x10 row-limiting flag. This means ANALYZE runs without
a row limit and can take a long time on large places.sqlite databases,
contributing to shutdown hangs.
Switch to 0x12 (0x02 | 0x10) at shutdown to cap ANALYZE runtime.
Also add PRAGMA optimize to PlacesDBUtils idle maintenance with
0x10012 to cover long-running sessions where shutdown is infrequent.
| Assignee | ||
Updated•3 months ago
|
Summary: Reduce the impact of Database::Shutdown doing a "PRAGMA optimize(0x02)" → Reduce the impact of Database::Shutdown currently doing a "PRAGMA optimize(0x02)"
Updated•3 months ago
|
Assignee: nobody → jstutte
Attachment #9545635 -
Attachment description: WIP: Bug 2017227 - Use time-bounded PRAGMA optimize for Places databases r?#places-reviewers → Bug 2017227 - Use time-bounded PRAGMA optimize for Places databases r?#places-reviewers
Status: NEW → ASSIGNED
Pushed by jstutte@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/df9ad3fc1d2c
https://hg.mozilla.org/integration/autoland/rev/13417e8747e8
Use time-bounded PRAGMA optimize for Places databases r=places-reviewers,mak
Comment 3•3 months ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
status-firefox149:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 149 Branch
Updated•2 months ago
|
QA Whiteboard: [qa-triage-done-c150/b149]
You need to log in
before you can comment on or make changes to this bug.
Description
•