[MXS-4178] Replace localStorage with localForage for maxgui Created: 2022-06-27  Updated: 2022-07-01  Resolved: 2022-07-01

Status: Closed
Project: MariaDB MaxScale
Component/s: maxgui
Affects Version/s: 6.0.0
Fix Version/s: 22.08.0

Type: Task Priority: Major
Reporter: Duong Thien Ly Assignee: Duong Thien Ly
Resolution: Fixed Votes: 0
Labels: None

Sprint: MXS-SPRINT-160

 Description   

localStorage has a size limit of 5MB for most modern browsers unless the user increases it. So, it has a limitation regarding the size limit.
There is a better storage in the browser which is IndexedDB. It's suitable for storing larger amounts of structured data.
It can store both objects and key-value pairs, so it saves time converting objects to strings that are needed when using localStorage.
Its maximum size limit is also larger than localStorage

There is a library called localForage which will automatically use localStorage in browsers with no IndexedDB or WebSQL support.


Generated at Thu Feb 08 04:26:46 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.