简体   繁体   中英

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

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)

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM