1

I'm mostly a PHP developer. Now I have a client steering me in the direction of a standalone app that runs on Mac, Windows, and Linux. It deals with pilot weather data and he wants it to work offline during flights and then sync up fresh data in the airport wifi. Immediately I thought of Google Chrome Apps for this.

I need to know what the storage size limitation is for Google Chrome databases when used specifically in Google Chrome Apps. I've been having trouble finding this information.

Some extra, related questions are:

  • When someone clears their Chrome browser cache, does this mean their Databases, Local Storage, and Application Cache are wiped clean? Or, is it only some of those resources are cleaned? My fear is that someone clears their cache and there goes all my offline app storage in the Google Chrome App.

  • I hate to sound dumb, but is "WebSQL" different than Chrome Databases?

  • Why would I use Local Storage versus a Chrome Database? (See the difference when you do CTRL+SHIFT+I in Chrome, and then click Resources tab.)

ThinkingStiff
  • 64,767
  • 30
  • 146
  • 239
Volomike
  • 23,743
  • 21
  • 113
  • 209

1 Answers1

6

Storage limit is 5MB by default. This limit can be disabled with unlimitedStorage permission (more details here).

I don't want to clear my cache to test it, but I am pretty sure storage is not cleaned. There is a related issue report which says that there is no way to delete storage explicitly right now.

WebDatabase, WebSQL, "a database api" all refer to the same thing - web database API that is currently based on SQLite.

Web database is pretty much a full scale database, localStorage is just a hashmap (an associative array) that stores key-value pairs.

serg
  • 109,619
  • 77
  • 317
  • 330
  • 3
    This limit can be disabled with unlimitedStorage permission (more details here). But I cannot see any unlimit method in this article. Does somebody know that? – akira32 Feb 22 '13 at 01:47