Open
Bug 1576573
Opened 5 years ago
Updated 2 years ago
Add telemetry for cursor preloading
Categories
(Core :: Storage: IndexedDB, task, P3)
Core
Storage: IndexedDB
Tracking
()
NEW
People
(Reporter: sg, Unassigned)
References
Details
Attachments
(1 obsolete file)
Bug 1168606 introduced preloading for IndexedDB cursors. The behaviour is significantly influenced by the number of preloaded records, which should be chosen such that preloading improves the performance in the majority of cases (in particular when a cursor is iterated through to the end of the range) without impairing it overly in a significant minority of cases. An indicator of whether the performance is impaired is the number of dropped or invalidated preloaded records. This should be measured by telemetry.
It must be decided if this needs to be discriminated by origin or other parameters.
Updated•5 years ago
|
Priority: -- → P3
Updated•5 years ago
|
Assignee: nobody → ssengupta
Status: NEW → ASSIGNED
Comment 1•5 years ago
|
||
Reporter | ||
Comment 2•5 years ago
•
|
||
Summary of the discussion between @ssengupta, @sg and @janv today:
- Do not gather time measurements with telemetry for now. For measuring specific times, a different approach should be used, see Bug 1601214
- Data should be submitted to Telemetry when a cursor is closed:
- The number of discarded entries for each Advance/Continue operation should be accumulated/summed up internally. (Only one sum for all of Advance/Continue/ContinuePrimaryKey).
- In addition, the sum of invalidated entries should be submitted.
- In addition, the number of entries accessed should be submitted, or the relation of discarded/invalidated entries to the number of entries accessed should be submitted.
- We probably also need to know the value of the preloading preferences.
- The same entry can only be discarded once, but it can be invalidated multiple times.
- Maybe use a single probe (keyed or categorical histogram) for all different metrics rather than multiple independent probes. Check with Telemetry team / #fxmetrics.
- The data should be used to see if we need to further optimize preloading (statically or dynamically), and in the future if additional optimizations are effective.
- Beyond the scope of this particular bug: This data could also be stored in the SQLite database (similar to maintenance statistics) for dynamic adjustments.
Updated•4 years ago
|
Assignee: ssengupta → nobody
Status: ASSIGNED → NEW
Updated•4 years ago
|
Attachment #9113213 -
Attachment is obsolete: true
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•