Open Bug 2042145 Opened 2 months ago Updated 1 month ago

Places: Optimize expiration_notify INSERT queries

Categories

(Toolkit :: Places, task, P3)

task

Tracking

()

People

(Reporter: mak, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [sng])

Attachments

(1 file)

The PlacesExpiration module runs several INSERT INTO expiration_notify queries on a repeating timer (every 3–9 minutes). Three of these queries have performance problems that cause them to be reported as slow, particularly on larger history databases.

The UNION ALL caused SQLite to re-evaluate the CTE (a full
moz_historyvisits JOIN moz_places scan) for each arm. Merge
the two arms into a single OR condition to scan the CTE once.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: