W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2010

Re: [IndexedDB] Granting storage quotas

From: Michael Nordman <michaeln@google.com>
Date: Wed, 21 Apr 2010 13:03:56 -0700
Message-ID: <n2nfa2eab051004211303g3ac90d6dh77df01323aaa010a@mail.gmail.com>
To: Mike Clement <mikec@google.com>
Cc: public-webapps@w3.org
On Wed, Apr 21, 2010 at 12:10 PM, Mike Clement <mikec@google.com> wrote:

> FWIW, the "transient" vs. "permanent" storage support is exactly why I
> eagerly await an implementation of EricU's Filesystem API.  Being able to
> guarantee that the UA will not discard potentially irreplaceable data is of
> paramount importance to web apps that want to work in an offline mode.
> I also find that the current arbitrary quota limit of 5MB per domain makes
> local storage APIs unusable for all but the most rudimentary apps (e.g.,
> sticky note demo apps).  There is an asymmetric distribution of local
> storage needs out there that no one is yet addressing (e.g., a photo- or
> video-related app might need GBs of local storage, an offline mail app might
> need tens or hundreds of MB, a TODO list app might only need kilobytes,
> etc.).
I wholeheartedly support any effort to coordinate quota management among all
> of the various local storage APIs.  The issue of quota limits is something
> that browser vendors will need to address soon enough, and it's probably
> best left up to them.  The need for "permanent" storage across all local
> storage APIs, though, is something that in my opinion should come out of the
> standardization process.

Here's a stab at defining programming interfaces that make a distinction
between "transient" vs "permanent" for the storage mechanisms. If we make
additions like this, we should use the same terminology across the board.

// WebSqlDBs, also could work for IndexedDBs
window.openDatabase(...);   // temporary

// AppCaches, embellish the first line of the manifest file

// FileSystem, see the draft, i've change the terms a little here
window.requestFilesystem(...);    // evictable

// LocalStorage
window.localStorage;    // purgeable
Received on Wednesday, 21 April 2010 20:04:51 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:24 UTC