Closed
Bug 830489
Opened 12 years ago
Closed 12 years ago
Delay database initialization and/or opening
Categories
(Firefox Health Report Graveyard :: Client: Desktop, defect)
Firefox Health Report Graveyard
Client: Desktop
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 21
People
(Reporter: gps, Assigned: gps)
References
Details
Attachments
(1 file, 1 obsolete file)
4.78 KB,
patch
|
rnewman
:
review+
|
Details | Diff | Splinter Review |
Per discussions with Perf team, we should consider delaying the following:
1) Initial database creation on first run
2) Opening the database on every application run
Assignee | ||
Comment 1•12 years ago
|
||
We will now delay FHR loading the first time the profile is used by 60s instead of the default 10s.
This only addresses half of the bug but half is better than none. We can file a follow-up to deal with remaining issues.
Comment 2•12 years ago
|
||
Comment on attachment 710436 [details] [diff] [review]
Delay DB init on first run, v1
Review of attachment 710436 [details] [diff] [review]:
-----------------------------------------------------------------
::: services/datareporting/DataReportingService.js
@@ +148,1 @@
> DEFAULT_LOAD_DELAY_MSEC;
Fix indent.
@@ +148,4 @@
> DEFAULT_LOAD_DELAY_MSEC;
> + } else {
> + delayInterval = this._prefs.get("service.loadDelayFirstRunMsec") ||
> + DEFAULT_LOAD_DELAY_FIRST_RUN_MSEC;
Fix indent.
@@ +252,5 @@
> this.policy,
> this.sessionRecorder);
> +
> + // Record first run so subsequent service loads aren't as delayed.
> + this._prefs.set("service.firstRun", true);
Observation: HealthReporter inits in the background, so it's quite possible that they quit before initialization has finished. That is, if I quit after 61 seconds, firstRun = true, but the DB has not finished initializing, and it'll happen after ten seconds next time.
IMO this isn't a big enough issue to warrant setting firstRun within HealthReporter, but it's worth calling out explicitly (if only in a bug comment!).
Attachment #710436 -
Flags: review?(rnewman) → review+
Assignee | ||
Comment 3•12 years ago
|
||
We have an onInit promise. We should use it.
Attachment #710436 -
Attachment is obsolete: true
Attachment #710501 -
Flags: review?(rnewman)
Updated•12 years ago
|
Attachment #710501 -
Flags: review?(rnewman) → review+
Assignee | ||
Comment 4•12 years ago
|
||
Whiteboard: [fixed in services]
Assignee | ||
Comment 5•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [fixed in services]
Target Milestone: --- → mozilla21
Updated•12 years ago
|
Component: Metrics and Firefox Health Report → Client: Desktop
Product: Mozilla Services → Firefox Health Report
Target Milestone: mozilla21 → Firefox 21
Updated•6 years ago
|
Product: Firefox Health Report → Firefox Health Report Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•