shizuku Posted February 28, 2017 Share Posted February 28, 2017 Hi eveyone,I'm coming here to have any help about the generation of a report. I have a main report (+- 200K lines) who is generated in less then 2 minutes by ireport, but, when I add subreports to this main, the generation become very very slow (more then 1 hour) and I don't know why. In Toad all my requests are very quick and it's the same when I try all my subreports separately. I'm using iReport 4.5.1After a lot of hours with my friend Google to try different solutions, IDK what to do more to increase the generation.I tried :Change de config file of ireport by changing J-Xms512m -J-Xmx1024m line (can't put more then 1024 or ireport doesn't want to start)Use a virtualizer in the tools of ireportPrint When Detail Overflow is false on every subreportA total generation for 5 or 10 minutes can be OK for me, but more not.I was wondering if using sub dataset can be a solution to replace sub reports ? (Never used it before, looking for tutorials to see when and how to use them).I hope someone will be able to help :) Link to comment Share on other sites More sharing options...
Scott Andersen Posted March 1, 2017 Share Posted March 1, 2017 Where is the subreport located? Is it in the detail band? If so, then the query for the subreport will be generated 200K times which may describe why the performance hit. Link to comment Share on other sites More sharing options...
shizuku Posted March 2, 2017 Author Share Posted March 2, 2017 He's located in a Group, but I find the solution : there was not an Index on a column I used in my where clause. Now the generation tooks a little more then 5 minutes :)BTW thanks for the information, I'll keep it in mind in the future if needed Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now