You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2020/04/09 14:15:39 UTC

[GitHub] [cordova-docs] breautek commented on issue #1042: Update IndexedDB platform support

breautek commented on issue #1042: Update IndexedDB platform support
URL: https://github.com/apache/cordova-docs/pull/1042#issuecomment-611551394
 
 
   Chrome doesn't really give a limit in a traditional sense, but it tries to not consume all of the disk space. It does this by determining how much remaining space is available and will start implementing quotas if remaining space gets low.
   
   Chrome will either try to keep at least 10% of the total storage or 2GB, whichever is lower, of the disk free, and will start implementing quotas once it reaches this threshold.
   
   The table below comes directly from the chromium sources, and is accurately as of Chrome 76.
   ```
   // The amount of the device's storage the browser attempts to
   --
     | // keep free. If there is less than this amount of storage free
     | // on the device, Chrome will grant 0 quota to origins.
     | //
     | // Prior to M66, this was 10% of total storage instead of a fixed value on
     | // all devices. Now the minimum of a fixed value (2GB) and 10% is used to
     | // limit the reserve on devices with plenty of storage, but scale down for
     | // devices with extremely limited storage.
     | // *   1TB storage -- min(100GB,2GB) = 2GB
     | // * 500GB storage -- min(50GB,2GB) = 2GB
     | // *  64GB storage -- min(6GB,2GB) = 2GB
     | // *  16GB storage -- min(1.6GB,2GB) = 1.6GB
     | // *   8GB storage -- min(800MB,2GB) = 800MB
   ```
   
   https://chromium.googlesource.com/chromium/src.git/+/refs/tags/76.0.3775.5/storage/browser/quota/quota_settings.cc
   
   Not sure about iOS/Safari.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org