Hi - I'm a bit of a smartGWT newbie and have inherited a large smartGWT application which isn't performing terribly well. I am focusing in on a specific fetch() request which uses IDACall handleDSRequest() to get the response. If I take the sql from that and run it in toad, it takes under a second to run. If I run it by stepping over the hadnleDSRequest() call in the app, it takes 7 seconds. The criteria include a startIndex of 0 and endIndex of 2000, so it is only returning 2001 rows and they are not data intensive. I've tried just about every option I can find in these 2 posts and found no difference in the response time.:
http://forums.smartclient.com/forum/...takes-too-long
http://forums.smartclient.com/forum/.../page3?t=21389
One thing I have been trying to do is set the start and end rows on the DSRequest, but whenever I do that I get the following error in chrome dev console (there doesn't seem to be any errors in the DSResponse, but there are no records either):
SEVERE: com.woodmac.datavisualizer.client.DataVisualizerEntryPoint:RPC Manager Error.java.lang.Exception: 200: //isc_RPCResponseStart-->[{affectedRows:0,data:"ORA-00907: missing right parenthesis\n",invalidateCache:false,isDSResponse:true,queueStatus:-1,status:-1}]//isc_RPCResponseEnd
When I take the sql from this failed call (using: com.isomorphic.sql.SQLDataSource.getSQLClause(com.isomorphic.sql.SQLClauseType.All, dsRequest);) and run that in toad it seems to work fine.
So, two questions:
1) why would adding:
dsRequest.setStartRow(0);
dsRequest.setEndRow(2000);
cause the sql to have a missing right parenthesis error when the sql works perfectly well without them set and there doesn't seem to be a missing right parenthesis in the sql?
2) do you have any other thoughts and ideas as to how I might be able to speed up this call to that of Toad? Given toad and the app are running in the same place, I just don't see why this would happen.
Thanks kindly
Jason
http://forums.smartclient.com/forum/...takes-too-long
http://forums.smartclient.com/forum/.../page3?t=21389
One thing I have been trying to do is set the start and end rows on the DSRequest, but whenever I do that I get the following error in chrome dev console (there doesn't seem to be any errors in the DSResponse, but there are no records either):
SEVERE: com.woodmac.datavisualizer.client.DataVisualizerEntryPoint:RPC Manager Error.java.lang.Exception: 200: //isc_RPCResponseStart-->[{affectedRows:0,data:"ORA-00907: missing right parenthesis\n",invalidateCache:false,isDSResponse:true,queueStatus:-1,status:-1}]//isc_RPCResponseEnd
When I take the sql from this failed call (using: com.isomorphic.sql.SQLDataSource.getSQLClause(com.isomorphic.sql.SQLClauseType.All, dsRequest);) and run that in toad it seems to work fine.
So, two questions:
1) why would adding:
dsRequest.setStartRow(0);
dsRequest.setEndRow(2000);
cause the sql to have a missing right parenthesis error when the sql works perfectly well without them set and there doesn't seem to be a missing right parenthesis in the sql?
2) do you have any other thoughts and ideas as to how I might be able to speed up this call to that of Toad? Given toad and the app are running in the same place, I just don't see why this would happen.
Thanks kindly
Jason
Comment