IBM JsonStore FindAll with filter ot without Filter not working in IOS when the records count is 50k

60 Views Asked by At

Hi I have a JSONSTORE with encryption enabled and i have a Store called Assets in this i store upto 50k+ records and i try to retrieve the all the records unique value using Filter option in the JSONStore and it works perfectly in the android devices but when it comes to IOS the API keeps on loading without any result / error. WL.JSONStore.get("Assets").findAll({filter : ["ASSETID"]}) WL.JSONStore.get("Assets").findAll() I am using Cordova IOS -> 4.5.4 JSONStore Plugin -> 8.0.2019121604 (Tried latest as well same result)

1

There are 1 best solutions below

2
Srik On

Can you explain why you're trying to load 50k records into memory ? This is typically bad design and there is no way 50k records are needed in the app at a given time. You should always query the subset of records you're interested in. If you want to display all 50k in a list, you should still paginate your results and display them.

The behavior depends on the memory available on the device, plus the memory management of iOS.

Furthermore, loading so many records will cause iOS to terminate background apps leading to poor experience for your users.