Regarding WebSql Storage quota and Quota Management API

141 views
Skip to first unread message

Mihir Ray

unread,
Nov 8, 2011, 3:10:58 PM11/8/11
to chromiu...@chromium.org
Hi,

I have some questions regarding Quota Management API and the storage
for WebSql / AppCache.

1. Currently in Chrome 15, Sql database is billed as TEMPORARY
storage. Are there any plans or way to bill it as PERSISTENT storage?
If yes, can I get 250 MB of PERSISTENT storage without chrome web app?

2. I tried to request more storage for my site using Quota Management
API inside TEMPORARY storage, but it does not allow more than 20% of
total TEMPORARY storage. Is there a way I can get unlimited storage
for appcache and web sql database without using hosted apps or
extensions?

3. Is the 20% of TEMPORARY storage rule per site changing soon or the
eviction process when the TEMPORARY storage is approaching its size?

4. Is there a difference between IDB and WebSql as far as the quota
API is concerned. If yes, why ?

5. Will the current model of TEMPORARY / PERSISTENT storage and quota
management API evolve / change further with respect to WebSql, IDB and
AppCache.


Thanks.

--
Mihir

David Grogan

unread,
Nov 8, 2011, 3:22:28 PM11/8/11
to Mihir Ray, chromiu...@chromium.org
On Tue, Nov 8, 2011 at 12:10 PM, Mihir Ray <mihi...@gmail.com> wrote:
Hi,

I have some questions regarding Quota Management API and the storage
for WebSql / AppCache.

1. Currently in Chrome 15, Sql database is billed as TEMPORARY
storage. Are there any plans or way to bill it as PERSISTENT storage?
If yes, can I get 250 MB of PERSISTENT storage without chrome web app?

2. I tried to request more storage for my site using Quota Management
API inside TEMPORARY storage, but it does not allow more than 20% of
total TEMPORARY storage. Is there a way I can get unlimited storage
for appcache and web sql database without using hosted apps or
extensions?

3. Is the 20% of TEMPORARY storage rule per site changing soon or the
eviction process when the TEMPORARY storage is approaching its size?


I don't know about the 20% rule, but the total disk space allocated to the storage apis is going to lose its 1GB hard cap.  I don't know how soon though.

4. Is there a difference between IDB and WebSql as far as the quota
API is concerned. If yes, why ?

There shouldn't be.  I don't know the answer to your other Qs.


5. Will the current model of TEMPORARY / PERSISTENT storage and quota
management API evolve / change further with respect to WebSql, IDB and
AppCache.


Thanks.

--
Mihir

--
You received this message because you are subscribed to the Google Groups "Chromium HTML5" group.
To post to this group, send email to chromiu...@chromium.org.
To unsubscribe from this group, send email to chromium-html...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-html5/?hl=en.


Kinuko Yasuda

unread,
Nov 9, 2011, 2:23:34 AM11/9/11
to David Grogan, Mihir Ray, chromiu...@chromium.org
On Wed, Nov 9, 2011 at 5:22 AM, David Grogan <dgr...@chromium.org> wrote:
On Tue, Nov 8, 2011 at 12:10 PM, Mihir Ray <mihi...@gmail.com> wrote:
Hi,

I have some questions regarding Quota Management API and the storage
for WebSql / AppCache.

1. Currently in Chrome 15, Sql database is billed as TEMPORARY
storage. Are there any plans or way to bill it as PERSISTENT storage?
If yes, can I get 250 MB of PERSISTENT storage without chrome web app?

As far as I know there's no short-term plan to add PERSISTENT support for Web Sql.
 
2. I tried to request more storage for my site using Quota Management
API inside TEMPORARY storage, but it does not allow more than 20% of
total TEMPORARY storage. Is there a way I can get unlimited storage
for appcache and web sql database without using hosted apps or
extensions?

For TEMPORARY storage you cannot increase the quota by requestQuota, (partly because it's allocated as a shared pool internally), but as David answered the upper limit will be increased after R16.
 
3. Is the 20% of TEMPORARY storage rule per site changing soon or the
eviction process when the TEMPORARY storage is approaching its size?


I don't know about the 20% rule, but the total disk space allocated to the storage apis is going to lose its 1GB hard cap.  I don't know how soon though.

I believe we drop the 1GB hard cap in the next release (R16).
 
4. Is there a difference between IDB and WebSql as far as the quota
API is concerned. If yes, why ?

There shouldn't be.  I don't know the answer to your other Qs.


5. Will the current model of TEMPORARY / PERSISTENT storage and quota
management API evolve / change further with respect to WebSql, IDB and
AppCache.

No plan for now, but if you have any specific problem or feature request please feel free to file a bug / feature request: http://crbug.com/
If the issue gets other developers' supports (i.e. starts) we'll definitely consider the enhancement.

Thanks,
Reply all
Reply to author
Forward
0 new messages