Re: [w3c/IndexedDB] Specifying "indexedDB" storage bottle deletion when data is evicted by quota (Issue #400)

The way this is worded

> A user agent that comes under storage pressure should clear network state and [local storage buckets](https://storage.spec.whatwg.org/#bucket) whose [mode](https://storage.spec.whatwg.org/#bucket-mode) is "best-effort", ideally prioritizing removal in a manner that least impacts the user.

makes it sound like **all** storage buckets that are not persistent should be removed when there's storage pressure. But I don't think we want that.

The part that says

> ideally prioritizing removal in a manner that least impacts the user.

suggests to me using an algorithm such as, but not limited to, LRU. That is, we should try to avoid removing buckets that are likely to be used again. If the UA does decide to remove a bucket, I don't know how we'd do so in a way that doesn't impact the user.

Thus, I'm not sure I understand the problem. We want to choose buckets carefully, but there's no clear way to dispose of bottles gracefully once one has been chosen.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/IndexedDB/issues/400#issuecomment-1480323937
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/IndexedDB/issues/400/1480323937@github.com>

Received on Wednesday, 22 March 2023 22:11:21 UTC