1. #1
    Sencha User
    Join Date
    Sep 2011
    Posts
    36
    Vote Rating
    0
    user14 is on a distinguished road

      0  

    Default time between request/response in Ext.data.Store

    time between request/response in Ext.data.Store


    I understand that this is asynchronous , but what can be the reason/cause that time between request and response is approximately 4 sec and more?
    I work/code on local Apach-Tomcat server.
    Is there any settings ( in Ext.data.Store) I missed ? ( or on server side)
    "Form" sends request with "header.accept" filled with types,
    ajax-based Ext.data.Store ( when I call load() ) sends "header.accept =*.* "
    This is only difference I noticed.
    Can anybody get back to me with advice pls?

  2. #2
    Sencha User skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,081
    Vote Rating
    112
    skirtle is a splendid one to behold skirtle is a splendid one to behold skirtle is a splendid one to behold skirtle is a splendid one to behold skirtle is a splendid one to behold skirtle is a splendid one to behold skirtle is a splendid one to behold

      0  

    Default


    You need to diagnose where the time is spent. There are plenty of tools available to help with this. Firebug and the Chrome Developer Tools both have excellent features for studying network requests and give a breakdown of exactly how long each stage of a request takes. Using a tool like Fiddler you can get slightly less detailed information for just about any browser.

    The first big step is to establish whether the time gap occurs in the server or the client. Either way, the next step is to do some profiling to figure out what specifically causes the delay.