Make sure BackupService runs PlacesBackupResource's `backup` method first
Categories
(Firefox :: Profile Backup, task, P3)
Tracking
()
| 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.
Updated•1 year ago
|
| Reporter | ||
Comment 1•1 year ago
|
||
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.
| Reporter | ||
Updated•1 year ago
|
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 2•1 year ago
|
||
- Adds a static
backupPositiongetter 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
PlacesBackupResourceposition 1 so it will run first.
Updated•1 year ago
|
Comment 4•1 year ago
|
||
| bugherder | ||
Description
•