Results 1 to 2 of 2

Thread: Is there any way to reduce the time it takes to load data to a Store in Sencha Touch?

  1. #1
    Sencha Premium Member
    Join Date
    Apr 2013
    Posts
    21

    Question Is there any way to reduce the time it takes to load data to a Store in Sencha Touch?

    Is there any way to reduce the time it takes to load data to a Store in Sencha Touch?

    Im trying to load hundreds of records to a store at once, but it takes to much time to execute the following code on a smartphone or tablet.
    obStore.suspendEvents();
    obStore.add(obData);
    obStore.resumeEvents(true);

    On a desktop computer it works considerably fast.

  2. #2
    Sencha Premium User
    Join Date
    Nov 2014
    Location
    Kansas
    Posts
    781
    Answers
    102

    Default

    Here's a few things that can affect performance:
    • The size of the data (and the number of fields)
    • Remembering that it's a mobile device (which is likely not as fast as a desktop computer)

    I would recommend adding paging to your stores so you won't need to pull down hundreds of records, or to limit the number of fields being transmitted, and request additional ones if the user specifically requests them (i.e. viewing the detail of a record, etc).

    Regards,
    Brian

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •