I have a report that has a one-to-many relationship between the main report and the subreport. Since it is pulling a full month long data and the subreport's main table is left-outer-joined with three other tables so it takes an hour to run. I have isolated the problem being on the report side because the same SQL query runs fast (less than a minute) against the database. The main report runs very fast without the subreport so I'm really inclined to see any workaround or improvement to the subreport.
Can some one advise me a good way to solve this problem? I read somewhere that you can use array to eliminate the need of the subreport so the report can run fast but I don't know how to write the codes to do that. I'd appreciate if someone can show me some sample codes.
Can some one advise me a good way to solve this problem? I read somewhere that you can use array to eliminate the need of the subreport so the report can run fast but I don't know how to write the codes to do that. I'd appreciate if someone can show me some sample codes.