QM: Implement storage maintenance
Categories
(Core :: Storage: Quota Manager, task, P2)
Tracking
()
People
(Reporter: janv, Unassigned)
References
(Blocks 1 open bug)
Details
I'll provide more details later, but this is mostly about clearing very old unused origin directories periodically.
Reporter | ||
Comment 1•1 year ago
|
||
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.
Description
•