最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Large Offline Storage with Sencha Touch 2 - Stack Overflow

programmeradmin1浏览0评论

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 badges
Add a ment  | 

1 Answer 1

Reset to default 4

Ended 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.

发布评论

评论列表(0)

  1. 暂无评论