Open Bug 1712052 Opened 3 years ago Updated 2 months ago

QM: Implement storage maintenance

Categories

(Core :: Storage: Quota Manager, task, P2)

task

Tracking

()

People

(Reporter: janv, Unassigned)

Details

I'll provide more details later, but this is mostly about clearing very old unused origin directories periodically.

IndexedDB already has a database maintenance which is triggered by the idle-daily notification (don't confuse it with the connection database maintenance which is done after 2 seconds of inactivity on an open database connection). The first step in this bug should be generalizing and moving the existing database maintenance for IndexedDB to Quota Manager (that would involve addition of new methods to the Client interface). Ideally, other quota clients could easily add support for optimizing SQLite databases during the maintenance (just like IndexedDB does currently) after that. Another cleanup which could be added later would be quota manager specific cleanup, for example removal of empty origin directories and/or removal of origins unused for long time.

You need to log in before you can comment on or make changes to this bug.