Finally, the problem is narrowed down to the response time of rowCount() from
back-end.
I commented out the database call in Rpc back-end and put a hard-coded value
of 15000 for rowCount().
Now, it is 100 times much faster.
What piece of code in the Remote Table is triggering rowCount() indefinite
times, when the rpc timeout 30 secs is specified?. In my case I get
rowCount() in 5 secs < 30 secs. What is the use of Rpc Timeout?
Can somebody explain this please?
Thanks.
Kanugula.
kanugula wrote:
>
> Hello,
>
> qooxdoo 0.7.3
> IE 6 and FF
>
> I have seen the RemoteTable fires _loadRowCount() multiple times (ranging
> from 2 - 30 times) depending on row count.
> Only after the last _loadRowCount() is finished, it calls _loadRowData().
>
> I am guessing that _loadRowData() is called only AFTER building the Table
> with empty rows of reutned Row Count size.
>
> If my assumptions is correct, why can't we build the empty table (if not,
> atleast for block of Pages in the background)?
>
> Firing _loadRowCount() multiplen times may not be an issue in my case, but
> the delay caused by filling up empty table for large number of rows (say
> 10000 rows) is showing a blank screen for a long time.
>
> _loadRowCount: function ()
> {
> var rpc = new qx.io.remote.Rpc(this.getServiceUrl(), "MyRpcService");
>
> rpc.setTimeout(30000);
> if (qx.core.Variant.isSet("qx.debug", "on"))
> {rpc.setCrossDomain(true);}
>
> var handler = function(result, exc) {
> if (exc == null) {
> //alert("Server returned: "+result);
> }
> else
> {
> this.info("Exception from the server: "+exc);
> }
> this._onRowCountLoaded(result);
> };
> rpc.callAsync(handler, "MyRowCountMethod");
> },
>
>
> _loadRowData : function(firstRow, lastRow)
> {
> var rpc = new qx.io.remote.Rpc(this.getServiceUrl(),
> "com.barcap.fdm.qooxdoo.rpc.service.RpcService");
> rpc.setTimeout(30000);
> if (qx.core.Variant.isSet("qx.debug", "on"))
> {rpc.setCrossDomain(true);}
>
> var handler = function(result, exc) {
> if (exc == null) {
> //alert("Server returned: "+result.length);
>
> var rowData = this.formulateRowData(result);
> }
> else
> {
> //alert("Exception from the server: "+exc);
> }
> this._onRowDataLoaded (rowData);
> };
> rpc.callAsync(handler, "MyRowDataMethod", firstRow, rowCount);
>
> }
>
> Please discard any syntax errors. Is my code correct? Has anybody seen
> this kind of problem? I dont get any Rpc timeout or any other error.
>
> Thanks.
> Kanugula.
>
--
View this message in context:
http://www.nabble.com/RmoteTable-fires-_loadRowCount%28%29-multiple-times-for-very-1st-request-tp16628238p16644482.html
Sent from the qooxdoo-devel mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel