1.SRC=isomorphic/system/modules/ISC_Core.js?isc_version=v9.0p_2013-11-03.js
2. ALL
3. N/A
4. N/A
5.N/A
6.
This is a Performance issue:
The fetch() for the download is taking the same time as the fetch() to populate the ListGrid for the user to see, but the download is taking 3-4 seconds longer than the fetch() is. The file is fine once it gets to the user I'm trying to track down why it is taking 3-4 seconds to build the csv file. I set the SmartClient logging to DEBUG and saw this in the the log when downloading a file.
with arg types: com.isomorphic.servlet.RequestContext, com.isomorphic.datasource.DSRequest, com.isomorphic.servlet.ISCHttpServletRequest
=== 2015-07-21 15:32:59,459 [c-10] INFO DSResponse - DSResponse: List with 1029 items
=== 2015-07-21 15:32:59,470 [c-10] INFO ProxyHttpServletResponse - content-disposition set to: attachment; fileName=USER_DOWNLOAD.csv - unwrapping response output stream (CompressionFilter)
these 38 lines are then printed for every 1029 item, for a total of 39102 lines of log and spanning 3 seconds
=== 2015-07-21 15:32:59,474 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
=== 2015-07-21 15:32:59,475 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
=== 2015-07-21 15:32:59,476 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
=== 2015-07-21 15:32:59,476 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
=== 2015-07-21 15:32:59,477 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
=== 2015-07-21 15:32:59,478 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'comboBox' instance of datasources: 1ms
=== 2015-07-21 15:32:59,478 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
=== 2015-07-21 15:32:59,479 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
=== 2015-07-21 15:32:59,479 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
=== 2015-07-21 15:32:59,480 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
=== 2015-07-21 15:32:59,481 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'short' instance of datasources: 0ms
=== 2015-07-21 15:32:59,482 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 1ms
=== 2015-07-21 15:32:59,482 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
=== 2015-07-21 15:32:59,482 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
=== 2015-07-21 15:32:59,483 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
=== 2015-07-21 15:32:59,483 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
=== 2015-07-21 15:32:59,483 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
=== 2015-07-21 15:32:59,488 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 1ms
=== 2015-07-21 15:32:59,488 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
=== 2015-07-21 15:32:59,488 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
=== 2015-07-21 15:32:59,489 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
=== 2015-07-21 15:32:59,489 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
=== 2015-07-21 15:32:59,490 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 1ms
=== 2015-07-21 15:32:59,490 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'select' instance of datasources: 0ms
=== 2015-07-21 15:32:59,490 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'test' instance of datasources: 0ms
=== 2015-07-21 15:32:59,491 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'test' instance of datasources: 0ms
=== 2015-07-21 15:32:59,491 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
=== 2015-07-21 15:32:59,491 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
=== 2015-07-21 15:32:59,492 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
=== 2015-07-21 15:32:59,492 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'short' instance of datasources: 0ms
=== 2015-07-21 15:32:59,493 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'test' instance of datasources: 0ms
=== 2015-07-21 15:32:59,493 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'boolean' instance of datasources: 0ms
=== 2015-07-21 15:32:59,493 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
=== 2015-07-21 15:32:59,494 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
=== 2015-07-21 15:32:59,494 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
=== 2015-07-21 15:32:59,494 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
=== 2015-07-21 15:32:59,495 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
=== 2015-07-21 15:32:59,495 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
Why are these lines getting printed in the log and why is it taking so long to prepare a csv file to download?
and
Is there anything I can do to make this faster?
2. ALL
3. N/A
4. N/A
5.N/A
6.
Code:
userResultList.exportData({exportAs: "csv",exportFilename:"USER_DOWNLOAD",exportSpanTitleSeparator:" ",exportShowHeaderSpanTitles:true,exportHeader:"USER_DOWNLOAD\n"});
The fetch() for the download is taking the same time as the fetch() to populate the ListGrid for the user to see, but the download is taking 3-4 seconds longer than the fetch() is. The file is fine once it gets to the user I'm trying to track down why it is taking 3-4 seconds to build the csv file. I set the SmartClient logging to DEBUG and saw this in the the log when downloading a file.
with arg types: com.isomorphic.servlet.RequestContext, com.isomorphic.datasource.DSRequest, com.isomorphic.servlet.ISCHttpServletRequest
=== 2015-07-21 15:32:59,459 [c-10] INFO DSResponse - DSResponse: List with 1029 items
=== 2015-07-21 15:32:59,470 [c-10] INFO ProxyHttpServletResponse - content-disposition set to: attachment; fileName=USER_DOWNLOAD.csv - unwrapping response output stream (CompressionFilter)
these 38 lines are then printed for every 1029 item, for a total of 39102 lines of log and spanning 3 seconds
=== 2015-07-21 15:32:59,474 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
=== 2015-07-21 15:32:59,475 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
=== 2015-07-21 15:32:59,476 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
=== 2015-07-21 15:32:59,476 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
=== 2015-07-21 15:32:59,477 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
=== 2015-07-21 15:32:59,478 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'comboBox' instance of datasources: 1ms
=== 2015-07-21 15:32:59,478 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
=== 2015-07-21 15:32:59,479 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
=== 2015-07-21 15:32:59,479 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
=== 2015-07-21 15:32:59,480 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
=== 2015-07-21 15:32:59,481 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'short' instance of datasources: 0ms
=== 2015-07-21 15:32:59,482 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 1ms
=== 2015-07-21 15:32:59,482 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
=== 2015-07-21 15:32:59,482 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
=== 2015-07-21 15:32:59,483 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
=== 2015-07-21 15:32:59,483 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
=== 2015-07-21 15:32:59,483 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
=== 2015-07-21 15:32:59,488 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 1ms
=== 2015-07-21 15:32:59,488 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
=== 2015-07-21 15:32:59,488 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
=== 2015-07-21 15:32:59,489 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
=== 2015-07-21 15:32:59,489 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
=== 2015-07-21 15:32:59,490 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 1ms
=== 2015-07-21 15:32:59,490 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'select' instance of datasources: 0ms
=== 2015-07-21 15:32:59,490 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'test' instance of datasources: 0ms
=== 2015-07-21 15:32:59,491 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'test' instance of datasources: 0ms
=== 2015-07-21 15:32:59,491 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
=== 2015-07-21 15:32:59,491 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
=== 2015-07-21 15:32:59,492 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
=== 2015-07-21 15:32:59,492 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'short' instance of datasources: 0ms
=== 2015-07-21 15:32:59,493 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'test' instance of datasources: 0ms
=== 2015-07-21 15:32:59,493 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'boolean' instance of datasources: 0ms
=== 2015-07-21 15:32:59,493 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
=== 2015-07-21 15:32:59,494 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
=== 2015-07-21 15:32:59,494 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
=== 2015-07-21 15:32:59,494 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
=== 2015-07-21 15:32:59,495 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
=== 2015-07-21 15:32:59,495 [c-10] DEBUG DataStructCache - getInstanceFile (failure): 'text' instance of datasources: 0ms
Why are these lines getting printed in the log and why is it taking so long to prepare a csv file to download?
and
Is there anything I can do to make this faster?
Comment