Closed Bug 1959694 Opened 10 months ago Closed 2 months ago

Shrink favicons database by removing favicon relations expired months ago

Categories

(Toolkit :: Places, task, P2)

task

Tracking

()

RESOLVED FIXED
147 Branch
Tracking Status
firefox147 --- fixed

People

(Reporter: mak, Assigned: mak)

References

(Blocks 1 open bug)

Details

(Whiteboard: [sng])

Attachments

(1 file)

Many icon relations have not been updated in ages, I have like 20k relations in my database (corresponding to about 250 icons) that were not updated on their last visit and are older than 1 year.

In most cases they are urls that started redirecting or returning errors, or bogus favicons.

SELECT icon_url, page_url
FROM moz_icons_to_pages ip
JOIN moz_icons i ON i.id = icon_id
JOIN moz_pages_w_icons pi ON pi.id = page_id
JOIN moz_places ON url_hash = page_url_hash
WHERE ip.expire_ms < min((last_visit_date / 1000), (strftime('%s', 'now', 'localtime', 'start of day', '-1 year', 'utc') * 1000))
AND root = 0
AND foreign_count = 0
Assignee: nobody → mak
Status: NEW → ASSIGNED
Summary: Shrink favicons database removing relations expired from more than 1 year → Shrink favicons database by removing favicon relations expired months ago
Pushed by mak77@bonardo.net: https://github.com/mozilla-firefox/firefox/commit/f0e0295fbc6a https://hg.mozilla.org/integration/autoland/rev/a535ef8ca3c0 Shrink favicons database by removing favicon relations expired months ago. r=daisuke,places-reviewers
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 147 Branch
QA Whiteboard: [qa-triage-done-c148/b147]
No longer depends on: 2007091
Regressions: 2007091
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: