Closed Bug 1892007 Opened 1 year ago Closed 1 year ago

Make sure BackupService runs PlacesBackupResource's `backup` method first

Categories

(Firefox :: Profile Backup, task, P3)

task

Tracking

()

RESOLVED FIXED
127 Branch
Tracking Status
firefox127 --- fixed

People

(Reporter: mconley, Assigned: fchasen)

References

Details

(Whiteboard: [fidefe-device-migration])

Attachments

(1 file)

From local testing, the PlacesBackupResource::backup method is the one likely to run the longest, especially for older profiles. This is because the places.sqlite database is likely quite large, and write operations to that database (which occur during most navigations) will delay the backup from completing.

Since we're confident that this one is the "long pole", I propose that we run its backup method first. The others can run in any order, as they're all fairly quick. This way, we won't run into a situation where SOME of a user's information is a backup created many minutes in the past vs the PlacesBackupResource.

fchasen brought up a good point that since the favicons.sqlite and places.sqlite databases are so closely intertwined (in fact, they're attached), we might also want to run the SQLite online backup process on them concurrently.

Severity: -- → N/A
Priority: -- → P3
Assignee: nobody → fchasen
Status: NEW → ASSIGNED
  • Adds a static backupPosition getter in BackupResource base class, which defaults to 0.
  • Determine the order resources will be backed up based on that position in createBackup, defaulting to unordered.
  • Sets PlacesBackupResource position 1 so it will run first.
Attachment #9397476 - Attachment description: Bug 1892007 - Add optional backupPosition number to BackupResource. r?#backup-reviewers! → Bug 1892007 - Add optional priority number to BackupResource. r?#backup-reviewers!
Pushed by fchasen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/26c19d7e3c85 Add optional priority number to BackupResource. r=backup-reviewers,mconley
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 127 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: