Working with BIG json


#1

So I have a .json file that contains about 10.000 items (about 120.000 rows).
What I do is on load I store the data in localstorage then load it from thereā€¦ but the app crashes every single time :wink:

I understand why, the json is used in 2 tabs and consumes a lot of memory.

Any suggestions how to solve this?


#2

use cordova sqllite plugin or something like pouchdb or anything else using websql :wink:


#3

Iā€™m currently using localForageā€¦ so when running the app in browser IndexedDB is usedā€¦ not sure what is actually used when running on the iPhone/emulatorā€¦

But you still suggest that I change it?


#4

maybe websql is not used, so i would use another techologie.


#5

Any tips on what to use? :smile:


#6

like i saidā€¦ cordova sqlite plugin or pouchdb which uses websql i think.


#7

Did some research and found out that there is a driver for localForage for SQLite :smile:


#8

is localforage limited by the max size of localStorage (10 mb I think)?


#9

Wellā€¦ if the limit is reached then user can be promted to allow additional 10MB