Hi,
I am current preparing report data on process report method in DP class.
Contract class takes two parameters, that is "from date" and "to date".
However, the code take lots of time to process data because multiple data sources are used to prepare data.
If data is processed for large date interval for e.g month than report processing take time and report connection breaks down.
Is there any way i can prepare data before report is run like in a batch job?
This report is run regularly for different date ranges.
Is it optimal to daily process that much data on batch job for report?
First of all, try to optimize queries, such as joining tables rather then making multiple database request, limiting fields to transfer, reviewing indexes and so on.
If it doesn't help, you can use pre-proprocessing (see Help prevent long-running reports from timing out).
And of course, you can also send a report to a batch; it's supported out of the box.
Abhilash Warrier
565
Martin Dráb
536
Most Valuable Professional
André Arnaud de Cal...
402
Super User 2025 Season 1