I have an XPL which returns a large amount of database results and stores them in a session variable. I send a small response back to the server for storing in an instance. The server response is converted into HTML and loaded through an IFrame, but between the server completing the database results and returning to the page there is a wait of over 5 seconds sometimes a minute, any ideas why? Thanks Ryan --
Ryan Puddephatt -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Hi Ryan,
I understand the part where the XPL get a large amount of data from the database and stores it in the session, but I don't get the "small response back to the server for storing in an instance". Who request that response? Is it over HTTP? Is it the iframe loading a URL which starts the XPL you are talking about but the XPL does not return the whole data to the iframe? Alex On 3/13/07, Ryan Puddephatt <[hidden email]> wrote: > > Hi, > I have an XPL which returns a large amount of database results and > stores them in a session variable. I send a small response back to the > server for storing in an instance. The server response is converted into > HTML and loaded through an IFrame, but between the server completing the > database results and returning to the page there is a wait of over 5 seconds > sometimes a minute, any ideas why? > > Thanks > > Ryan > > -- > > > > Ryan Puddephatt > Software Engineer > > Teleflex Group - IT UK > 1 Michaelson Square > Livingston > West Lothian > Scotland > EH54 7DP > > e> [hidden email] > t> +44(0)1506 407 110 > f> +44(0)1506 407 108 > w> www.teleflex.com > > > -- > You receive this message as a subscriber of the [hidden email] > mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > -- Orbeon Forms - Web 2.0 Forms for the Enterprise http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Alex,
Sorry bad explaination. The xforms:submission is in the parent page, it is a replace="instance" where the result is <no-results/> or <results>n</results> where n is a count of the records. The Iframe is refreshed using xxforms:script, this calls an XPL which gets the data out of the session and creates straight HTML. Thanks Ryan
Ryan Puddephatt Alessandro Vernet wrote: Hi Ryan, -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Ryan,
And with this, when does the 5 second delay comes into the picture? Alex On 3/13/07, Ryan Puddephatt <[hidden email]> wrote: > > Alex, > Sorry bad explaination. The xforms:submission is in the parent page, it > is a replace="instance" where the result is <no-results/> or > <results>n</results> where n is a count of the records. > > The Iframe is refreshed using xxforms:script, this calls an XPL which gets > the data out of the session and creates straight HTML. > > Thanks > > Ryan > > > > > Ryan Puddephatt > Software Engineer > > Teleflex Group - IT UK > 1 Michaelson Square > Livingston > West Lothian > Scotland > EH54 7DP > > e> [hidden email] > t> +44(0)1506 407 110 > f> +44(0)1506 407 108 > w> www.teleflex.com > > > Alessandro Vernet wrote: > Hi Ryan, > > I understand the part where the XPL get a large amount of data from > the database and stores it in the session, but I don't get the "small > response back to the server for storing in an instance". Who request > that response? Is it over HTTP? Is it the iframe loading a URL which > starts the XPL you are talking about but the XPL does not return the > whole data to the iframe? > > Alex > > On 3/13/07, Ryan Puddephatt <[hidden email]> wrote: > > > Hi, > I have an XPL which returns a large amount of database results and > stores them in a session variable. I send a small response back to the > server for storing in an instance. The server response is converted into > HTML and loaded through an IFrame, but between the server completing the > database results and returning to the page there is a wait of over 5 > seconds > sometimes a minute, any ideas why? > > Thanks > > Ryan > > -- > > > > Ryan Puddephatt > Software Engineer > > Teleflex Group - IT UK > 1 Michaelson Square > Livingston > West Lothian > Scotland > EH54 7DP > > e> [hidden email] > t> +44(0)1506 407 110 > f> +44(0)1506 407 108 > w> www.teleflex.com > > > -- > You receive this message as a subscriber of the [hidden email] > mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > > > ________________________________ > > > -- > You receive this message as a subscriber of the [hidden email] > mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > > -- > You receive this message as a subscriber of the [hidden email] > mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > -- Orbeon Forms - Web 2.0 Forms for the Enterprise http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Between the server finishing its request, Log4J even output /search
finished
and the client getting its AJAX XML Response and removing the Loading Indicator. Not sure what OF is doing in this time? Ryan
Ryan Puddephatt Alessandro Vernet wrote: Ryan, -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Ryan,
The request you are talking about is the Ajax request for the submission replace="instance"? So you are saying the request is done, but the loading indicator stays for a few seconds after that? Or are you talking about the request to the database? Alex On 3/13/07, Ryan Puddephatt <[hidden email]> wrote: > > Between the server finishing its request, Log4J even output /search > finished > > and the client getting its AJAX XML Response and removing the Loading > Indicator. > > Not sure what OF is doing in this time? > > > Ryan > > > > > Ryan Puddephatt > Software Engineer > > Teleflex Group - IT UK > 1 Michaelson Square > Livingston > West Lothian > Scotland > EH54 7DP > > e> [hidden email] > t> +44(0)1506 407 110 > f> +44(0)1506 407 108 > w> www.teleflex.com > > > Alessandro Vernet wrote: > Ryan, > > And with this, when does the 5 second delay comes into the picture? > > Alex > > On 3/13/07, Ryan Puddephatt <[hidden email]> wrote: > > > Alex, > Sorry bad explaination. The xforms:submission is in the parent page, > it > is a replace="instance" where the result is <no-results/> or > <results>n</results> where n is a count of the records. > > The Iframe is refreshed using xxforms:script, this calls an XPL which gets > the data out of the session and creates straight HTML. > > Thanks > > Ryan > > > > > Ryan Puddephatt > Software Engineer > > Teleflex Group - IT UK > 1 Michaelson Square > Livingston > West Lothian > Scotland > EH54 7DP > > e> [hidden email] > t> +44(0)1506 407 110 > f> +44(0)1506 407 108 > w> www.teleflex.com > > > Alessandro Vernet wrote: > Hi Ryan, > > I understand the part where the XPL get a large amount of data from > the database and stores it in the session, but I don't get the "small > response back to the server for storing in an instance". Who request > that response? Is it over HTTP? Is it the iframe loading a URL which > starts the XPL you are talking about but the XPL does not return the > whole data to the iframe? > > Alex > > On 3/13/07, Ryan Puddephatt <[hidden email]> wrote: > > > Hi, > I have an XPL which returns a large amount of database results and > stores them in a session variable. I send a small response back to the > server for storing in an instance. The server response is converted into > HTML and loaded through an IFrame, but between the server completing the > database results and returning to the page there is a wait of over 5 > seconds > sometimes a minute, any ideas why? > > Thanks > > Ryan > > -- > > > > Ryan Puddephatt > Software Engineer > > Teleflex Group - IT UK > 1 Michaelson Square > Livingston > West Lothian > Scotland > EH54 7DP > > e> [hidden email] > t> +44(0)1506 407 110 > f> +44(0)1506 407 108 > w> www.teleflex.com > > > -- > You receive this message as a subscriber of the [hidden email] > mailing list. > To unsubscribe: > mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > > > ________________________________ > > > -- > You receive this message as a subscriber of the [hidden email] > mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > > -- > You receive this message as a subscriber of the [hidden email] > mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > > > ________________________________ > > > -- > You receive this message as a subscriber of the [hidden email] > mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > > -- > You receive this message as a subscriber of the [hidden email] > mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > -- Orbeon Forms - Web 2.0 Forms for the Enterprise http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Alex,
Its the AJAX Request, the logging shows the /xforms-server request is complete, but there is a wait between then and the AJAX response completing, even though its one element Ryan
Ryan Puddephatt Alessandro Vernet wrote: Ryan, -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Hi Ryan,
> Its the AJAX Request, the logging shows the /xforms-server request is > complete, but there is a wait between then and the AJAX response completing, > even though its one element Could it be the case that the Ajax response comes back with instructions for the browser to run, and that running those takes a long time? Do you see the CPU on the client side being used heavily while the response is being processed? Alex -- Orbeon Forms - Web 2.0 Forms for the Enterprise http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Alex,
It does rise, but its difficult to tell whether this is the server or client as they are the same, I'll have to try it again once its deployed. I have removed some xforms:outputs and xforms:groups from the page, and it isn't quite as slow any more, so it probably was the client handling this. Thanks Ryan
Ryan Puddephatt Alessandro Vernet wrote: Hi Ryan, -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Ryan,
On 3/22/07, Ryan Puddephatt <[hidden email]> wrote: > It does rise, but its difficult to tell whether this is the server or > client as they are the same, I'll have to try it again once its deployed. I > have removed some xforms:outputs and xforms:groups from the page, and it > isn't quite as slow any more, so it probably was the client handling this. Yes, this is likely to be a client issue. If you get this type of delay again and it looks to you that the processing the client should to is not that complex, it would be worth looking at the Ajax response. There are cases where the modifications that needs to be done to the page as a result of that Ajax response just take time, but there are other cases where the processing of the Ajax response in JavaScript is not that efficient and those cases can be optimized. Alex -- Orbeon Forms - Web 2.0 Forms for the Enterprise http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |