Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Ext User
    Join Date
    Dec 2010
    Posts
    4
    Vote Rating
    0
    termy21 is on a distinguished road

      0  

    Default Go direct to proxy and avoid sync() batching

    Go direct to proxy and avoid sync() batching


    I am loading about 2MB of JSON data from my server, and then persisting that locally using LocalStorage.

    The code is fairly simple. It does an add() on the local store for each record retrieved from the server.
    Then I perform a sync().

    Since this is a large data set, the actual batch insert operations seem to take up to 30 seconds (however, it's async so I don't see the delay on the application).

    What I am finding is that in Safari, the sync() is happening in the background (I know this because the process safari.exe process keeps running until the sync() is complete, which is good). If I kill the safari.exe process, I seem to corrupt my localstorage.

    However, I find that with the iPad when the web app is "installed" to the spring board, pressing the Home button seems to kill my process, and will also corrupti my datastore.

    In contrast, if I run my app in Safari on the iPad, since the Safari process is always running, I don't seem to hit this issue.

    My question: Is there a callback to know when sync() is complete, so at least I can show a progress panel during this 30 seconds?

    Or is there a way I can take over and control the proxy to insert non-batched? I'm thinking something like REST, but for localstorage.

    Thanks.

  2. #2
    Ext User xnakxx's Avatar
    Join Date
    Sep 2010
    Location
    Central Valley Ca
    Posts
    84
    Vote Rating
    0
    xnakxx is on a distinguished road

      0  

    Default


    look at autosave

    http://dev.sencha.com/deploy/touch/d...Ext.data.Store

    not too sure of any performance ramifications tho

  3. #3
    Ext User
    Join Date
    Jul 2010
    Posts
    32
    Vote Rating
    0
    fgeorge is on a distinguished road

      0  

    Default


    hi termy21,

    Can you please share what you did to save remote JSON to localstorage? using a sample code?

    i cant seem to get my head round it as i havent found an examples on this..

    thanks

Similar Threads

  1. How To sync store / proxy / Model with "submodel" and localstorage
    By hq242 in forum Sencha Touch 1.x: Discussion
    Replies: 0
    Last Post: 30 Jul 2010, 5:58 AM
  2. Simple Ext.Direct-Combobox plugin --- with Ext.Direct.Store for reuse
    By xp743 in forum Ext 3.x: User Extensions and Plugins
    Replies: 1
    Last Post: 26 Jul 2010, 11:56 AM
  3. Batching data...approaches for configuring the JsonStore?
    By js_coder in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 25 Jan 2010, 9:10 AM
  4. Stores Sync
    By krycek in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 19 Dec 2007, 10:23 AM

Thread Participants: 2