[Webkit-unassigned] [Bug 178204] IndexedDB causes massive storage usage on iOS, never recycles usage

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 27 05:41:10 PDT 2018


https://bugs.webkit.org/show_bug.cgi?id=178204

--- Comment #2 from Sondre Bjellås <pixelworld at hotmail.com> ---
I performed some testing using Safari on the latest iOS 11.2.6 (iPhone 8) using the sample created by cmumford in this bug report:

https://bugs.chromium.org/p/chromium/issues/detail?id=488851

Code:

https://bugs.chromium.org/p/chromium/issues/attachmentText?aid=100949

It appears as long as the db connection is open, the storage reported by the phone for Safari increases every time the same content is written to IndexedDB. When the db connection is closed, either by code or by closing the browser tab, then Safari is able to flush the storage back to what actual written size of data.

Since our app is a long-running app on the device and likely never closed the db connection, it just kept increasing used storage. We are writing a lot of data continuously, but we'll attempt changing our logic. We will attempt to open and close the database on intervals to ensure that it flushes the usage.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180327/7899dcba/attachment.html>


More information about the webkit-unassigned mailing list