0

Please tell me what is normally a data store, large data in Google's extension. I know there is a chrome.storage - now I keep everything in it - a couple of keys. But to make a selection, etc. not convenient from the word at all, there is a possibility that the data will be lost, etc.

I know there is WebSql and indexedDb, but they are declared deprecated. Can eat still variants? excluding a separate server that will store all the data in the mysql database.

Tsyklop
  • 369
  • 1
  • 9
  • 24

2 Answers2

0

For small amounts of data you have "localStorage" which is usually 5 Mb, and you have "chrome.storage" which has 5 Mb locally and a part of it can be uploaded to Google servers (for cross-browser sharing) - on the server you have just 100 Kb.

Then there's IndexedDB, which seems to vary from 10 Mb up to 300 Mb and maybe even a bit more. See Maximum item size in IndexedDB and this document which describes quotas on IndexedDB.

If you want to treat a lot of data, you have to either upload it to your (or a 3rd-party-provided) server-side database, or create a normal desktop app (if you want it locally).

battlmonstr
  • 5,841
  • 1
  • 23
  • 33
  • @wOxxOm that's what I've said - you can only upload 100 Kb. If you put 5 Mb into localStorage, can you still put 5 Mb into chrome.storage ? Is it 10 Mb total? – battlmonstr May 13 '18 at 19:35
0

There is comparing about localstorage with chrome storage. You can easly decide which is better.

window.localStorage vs chrome.storage.local

İsa Baş
  • 106
  • 6