Hi Isomorphic,
We have a ListGrid with autoFetchData=false. All fetches are initiated when needed by our application.
On changing the ViewState, however, we are seeing a rogue fetch, that does not include any of the criteria, or any data page size limits as configured, which is having some performance consequences.
Our proper paged and filtered queries look like this:
The rogue queries without the criteria and page size constraints, which appear to come about with a ViewState change, look like this:
I assume somehow, when changing the ViewState, which changes the sort, this rogue query is being generated by the framework, but we do not feel it should be. We need to prevent it, as it is not the proper fetch. Can you please determine the source of rogue fetch and help us with preventing it?
What is also interesting is that the rogue fetch oddly contains: operationId:"exec_fetch" and componentId:"(created directly)"
Thank you
SmartClient Version: v10.1p_2017-03-11/Pro Deployment (built 2017-03-11)
We have a ListGrid with autoFetchData=false. All fetches are initiated when needed by our application.
On changing the ViewState, however, we are seeing a rogue fetch, that does not include any of the criteria, or any data page size limits as configured, which is having some performance consequences.
Our proper paged and filtered queries look like this:
Code:
{ dataSource:"exec", operationType:"fetch", data:{ operator:"and", criteria:[ { fieldName:"name", operator:"iContains", value:"xxx" } ] }, startRow:0, endRow:25, sortBy:[ "type" ], textMatchStyle:"exact", willHandleError:true, showPrompt:false, oldValues:{ operator:"and", criteria:[ { fieldName:"name", operator:"iContains", value:"xxx" } ] }, requestId:"exec$62717", fallbackToEval:false, outputs:"type,..., name,..., statusCode", lastClientEventThreadCode:"MDN2", bypassCache:true, dataProtocol:"getParams" }
Code:
{ dataSource:"exec", operationType:"fetch", operationId:"exec_fetch", componentId:"(created directly)", sortBy:[ "-statusCode" ], textMatchStyle:"exact", resultSet:[ResultSet ID:isc_ResultSet_17(dataSource: exec, created directly)], callback:{ caller:[ResultSet ID:isc_ResultSet_17(dataSource: exec, created directly)], methodName:"fetchRemoteDataReply" }, willHandleError:true, showPrompt:true, requestId:"exec$62719", internalClientContext:{ requestIndex:1 }, fallbackToEval:false, lastClientEventThreadCode:"TMR8", bypassCache:true, dataProtocol:"getParams" }
What is also interesting is that the rogue fetch oddly contains: operationId:"exec_fetch" and componentId:"(created directly)"
Thank you
SmartClient Version: v10.1p_2017-03-11/Pro Deployment (built 2017-03-11)
Comment