admin管理员组文章数量:1419633
I'm currently working on a mobile app (implemented using Sencha Touch 2 and designed to run on an iPad). There is a requirement to pull a fairly large amount of data (3000+ objects, objects have around 30 fields) down to the app from a web service and then persist the data locally for use offline. I've investigated the standard solutions discussed here and elsewhere whereby localstorage proxies are used to persist the data after pulling it from the web service, but I run into the dreaded QUOTA_EXCEEDED_ERR due to the amount of data I'm trying to persist.
There are a handful of threads around discussing things like SQLLite and Lawnchair (including this thread where someone mentions integrating Sencha with Lawnchair and refers to a guide which I can't find anywhere) but no concrete examples or success stories. Can anyone remend a tried/tested method of persisting large datasets using Sencha Touch?
EDIT: After asking a similar question on the Sencha Forums I'm investigating the use of SQLite using the SQLite Proxy for ST2. Will update this thread further for the benefit of others once I have made progress.
I'm currently working on a mobile app (implemented using Sencha Touch 2 and designed to run on an iPad). There is a requirement to pull a fairly large amount of data (3000+ objects, objects have around 30 fields) down to the app from a web service and then persist the data locally for use offline. I've investigated the standard solutions discussed here and elsewhere whereby localstorage proxies are used to persist the data after pulling it from the web service, but I run into the dreaded QUOTA_EXCEEDED_ERR due to the amount of data I'm trying to persist.
There are a handful of threads around discussing things like SQLLite and Lawnchair (including this thread where someone mentions integrating Sencha with Lawnchair and refers to a guide which I can't find anywhere) but no concrete examples or success stories. Can anyone remend a tried/tested method of persisting large datasets using Sencha Touch?
EDIT: After asking a similar question on the Sencha Forums I'm investigating the use of SQLite using the SQLite Proxy for ST2. Will update this thread further for the benefit of others once I have made progress.
Share Improve this question edited May 23, 2017 at 11:56 CommunityBot 11 silver badge asked May 15, 2012 at 15:20 Henry WilsonHenry Wilson 3,3515 gold badges33 silver badges47 bronze badges1 Answer
Reset to default 4Ended up using the SQLite Proxy for ST2 to solve my problem regarding persistence of a large dataset. Highly remended, and with a really helpful munity on the Sencha forums who were invaluable in getting the solution working.
本文标签: javascriptLarge Offline Storage with Sencha Touch 2Stack Overflow
版权声明:本文标题:javascript - Large Offline Storage with Sencha Touch 2 - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745307751a2652751.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论