SmartClient Version: v8.2p_2013-03-28/PowerEdition Deployment (built 2013-03-28)
I'm looking for general approach and advice here please.
From the client, we need to download a file from the server. This file will be created on the server side by fetching rows from a table in the database and returning the result to the client.
This is straightforward except in the case where the size of the data selected is large (100k rows or more). In this case, the execute(dsRequest) throws an out of memory exception and fails.
I've been unable to find an example or discussion of this problem. Using setStartRow and setEndRow seems to cause a complete fetch of the table (from the SQL trace and execution times involved). DSRequest.setStreamResults looked promising but just causes a null pointer exception when used and I could find no examples of its use.
Thanks for any direction you can offer.
Matt Cecile
I'm looking for general approach and advice here please.
From the client, we need to download a file from the server. This file will be created on the server side by fetching rows from a table in the database and returning the result to the client.
This is straightforward except in the case where the size of the data selected is large (100k rows or more). In this case, the execute(dsRequest) throws an out of memory exception and fails.
I've been unable to find an example or discussion of this problem. Using setStartRow and setEndRow seems to cause a complete fetch of the table (from the SQL trace and execution times involved). DSRequest.setStreamResults looked promising but just causes a null pointer exception when used and I could find no examples of its use.
Thanks for any direction you can offer.
Matt Cecile
Comment