1. #1
    Sencha Premium Member
    Join Date
    Dec 2009
    Posts
    15
    Answers
    2
    Vote Rating
    1
    mdb is on a distinguished road

      0  

    Default Unanswered: Localstorage: reliable?

    Unanswered: Localstorage: reliable?


    Hi all,

    I'm struggling with a store which is using local storage. It isn't that hard to set up the store, and get it to work.(adding/changing/deleting records) After a few bugs and workarounds I got everyting up and running.

    My problem is however that when I start adding records to the store, sometimes other records disappear. Most of the times, it works well, but sometimes records disappear and the application crashes the next time it loads, because the proxy reference to that non-existing record is still there. The proxy references(if you view local storage items in Safari console) still point to a record which has disappeared.(e.g.: ext-record-162, which existed before and is now gone) I use the store.add() method, so no weird coding whatsoever.

    I've got two questions:
    1. Is it possible to use a store with localstorage, which is 100% reliable?
    2. Or am I using the wrong tool: saving +1000 records using local storage
    I will look into sqlite now, maybe that brings the solution I'm looking for.

    Looking forward for your replies.

  2. #2
    Sencha User
    Join Date
    Apr 2010
    Location
    China
    Posts
    227
    Answers
    64
    Vote Rating
    20
    haduki will become famous soon enough haduki will become famous soon enough

      0  

    Default


    ios 5.1?
    In iOS 5.1, this data is no longer considered persistent and is treated as temporary or transitory data, so iOS can destroy it at any time, without warning, including during low memory scenarios.


    see
    http://www.sencha.com/blog/html5-sco...d-and-ios-5-1/

  3. #3
    Sencha Premium Member
    Join Date
    Dec 2009
    Posts
    15
    Answers
    2
    Vote Rating
    1
    mdb is on a distinguished road

      0  

    Default


    Thanks. Does that also mean that the use of sqlite is also unreliable? Is PhoneGap the only reliable solution for storing data offline?

  4. #4
    Sencha User
    Join Date
    Mar 2012
    Posts
    16
    Vote Rating
    0
    Nepol is on a distinguished road

      0  

    Default


    I'd like to know this as well thanks

Thread Participants: 2

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar