Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Initalize first rendering
fmakwsi
<p>Hey guys,</p>
<p> </p>
<p>i've got a short question about the rendering of your reports. When i first call task.run() on my first report that i want to render it takes like ages to render the report. On every single rendering after it is very fast and takes like maybe a second with big data. </p>
<p> </p>
<p>Is there a possible to increase the speed of the first rendering? Below is the code which i use to render the report. </p>
<pre class="_prettyXprint _lang-js">
config = new EngineConfig();
config.setLogConfig("", Level.OFF);
HashMap<String, ClassLoader> map = config.getAppContext();
map.put(EngineConstants.APPCONTEXT_CLASSLOADER_KEY, contextClassLoader);
config.setAppContext(map);
Platform.startup(config);
final IReportEngineFactory factory = (IReportEngineFactory) Platform
.createFactoryObject(IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY);
engine = factory.createReportEngine(config);
URL url = mapOfReports.get(bundleId);
IReportRunnable design = engine.openReportDesign(url.openStream());
task = engine.createRunAndRenderTask(design);
task.setParameterValue("EmployeeName", param.get(0));
task.setParameterValue("ProjectId", param.get(1));
task.setParameterValue("StartDate", convertStringToDate(param.get(2)));
task.setParameterValue("EndDate", convertStringToDate(param.get(3)));
task.validateParameters();
task.setRenderOption(renderoption);
task.run();
</pre>
<p>Btw it doesnt matter which report i want to render after the first time (since i use serval ones).</p>
<p> </p>
<p> </p>
<p>Greetz</p>
<p> </p>
<p>flo</p>
Find more posts tagged with
Comments
fmakwsi
<p>Sorry for double post
delete 1 of em pls</p>
fmakwsi
<p>I increased the speed by keeping the Platform and Engine while the plugin is activated and rendering a empty default report at the startup, but this is more a workaround any other solutions?</p>
fmakwsi
<p>Since there is no answere i guess no</p>
fmakwsi
<p>no one can help me with the matteR?</p>