Open Bug 1580499 Opened 5 years ago Updated 2 years ago

Refine cursor preloading to avoid unnecessary cache invalidations

Categories

(Core :: Storage: IndexedDB, enhancement, P2)

enhancement

Tracking

()

People

(Reporter: sg, Unassigned)

References

Details

(Whiteboard: [storage-jv])

Attachments

(1 file)

In order to preserve the ordering of requests, in the original implementation of preloading cursors, several operations invalidate cached results. These results would in fact still be valid. The invalidation is done to enforce that the cursor requests are sent to the parent, which implicitly serializes the processing of requests and thus of their responses.

To remove these invalidations, the child must ensure that responses are emitted in the correct order by tracking the serial numbers of requests.

See also https://bugzilla.mozilla.org/show_bug.cgi?id=1168606#c69

Priority: -- → P2

Unassigning myself from this for now.

The attached patch https://phabricator.services.mozilla.com/D45543 is incomplete and cannot be landed as is, but might be used as a starting point by whoever picks this up.

Assignee: sgiesecke → nobody
Assignee: nobody → jvarga
Status: NEW → ASSIGNED
Assignee: jvarga → nobody
Status: ASSIGNED → NEW
Whiteboard: [storage-jv]
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: