Case study · Official Progress Service Delivery Partner
From 60 minutes to under 10 seconds: fixing slow Telerik reports
- Industry
- HR technology, payroll and HCM software (USA)
- Engagement
- Performance assessment, about 30 hours over four weeks
- Stack
- Telerik Reporting, .NET, Oracle Database (SQL Server for testing)
- Services
- Report review, SQL tracing, proof of concept, recommendations
- Delivery
- One senior consultant, fully remote
Key results
- 50–60 minutes → under 10 seconds for two critical payroll reports
- About 300× faster rendering in the proof of concept
- Root cause found without access to the production database
- 5 reports assessed in depth, 3 rated critical
- About 30 hours of consulting, well within the budget
- A repeatable fix pattern for a library of nearly 400 reports
Client details are withheld for confidentiality.
The client
A US software provider of payroll and human capital management (HCM) solutions. Its customers rely on the platform for payroll processing, tax filings and HR reporting.
The platform includes a library of nearly 400 reports built with Telerik Reporting, many of them customer-specific variants of the same core report. The client was also planning to modernise its reporting stack and move to a newer web report viewer.
The challenge
Some of the most important reports had become too slow to use.
- Hour-long reports. Key payroll reports took 50 to 60 minutes to render. In practice, users could not rely on them.
- A hidden root cause. The SQL behind the reports was simple: standard filters, a few joins and unions. On its own, it did not explain the slowness, and the team lacked the deep Telerik Reporting knowledge to see what else was going on.
- No access to production data. The production database ran on Oracle and was not available for the assessment. The diagnosis had to work from the report definitions and a sample of the data.
- An aging stack. The reports ran on a Telerik Reporting release many versions behind the current one and were built in the Visual Studio report designer.
- Scale. With nearly 400 reports, the client needed a fix its own team could repeat across the whole library, not a handful of one-off patches.
Our approach
The goal was to find the real cause quickly, prove a fix, and leave the team with a pattern it could apply on its own.
1. Pick a representative sample. We chose five reports: the slowest ones and some healthy ones. Comparing the two groups made the problem pattern easier to see.
2. Review every report layer. Data sources, nested tables and lists, grouping, aggregates, expressions, styling and layout, with each finding rated by severity.
3. Trace the SQL on real-shaped data. Because the Oracle database was not available, we loaded part of the data into SQL Server, ran the reports and traced every SQL statement they executed. That showed exactly where the render time went.
4. Prove the fix. We refactored two critical reports with the proposed fix and measured them before and after on the same data.
5. Hand it over. A written assessment with prioritised recommendations, a walkthrough of the findings and the refactored reports, and follow-up questions answered as they came up.
The root cause: death by a thousand queries
The slowness did not come from any single query. It came from how the reports were put together.
The critical reports defined 19 to 29 data sources, many of them attached to tables nested inside other tables. Each nested table ran its own query for every row of its parent.
The numbers add up fast. A report with 20 nested data sources and 100 rows makes 1 + 100 × 20 = 2,001 database calls for a single render. At real payroll volumes, that quickly reaches thousands of round trips.
On top of that, separate queries fetched and summed data the report had already loaded, just to show subtotals and totals.
What we delivered
A proven refactoring pattern. In the proof of concept, we consolidated the data sources and fed the nested tables through Telerik Reporting bindings, using data that was already loaded. Totals and subtotals were calculated inside the report instead of by extra queries. In one report, three data sources became one.
A severity-rated assessment. Findings in seven areas, with each reviewed report rated from OK to Critical, and six prioritised recommendations, from “highly recommended” to “for consideration”.
A modernisation roadmap. The steps for upgrading to the current Telerik Reporting release, moving to the Standalone Report Designer, and sharing style sheets across reports to make them easier to maintain.
The results
| Area | Before | After |
|---|---|---|
| Render time | 50–60 minutes | Under 10 seconds |
| Database calls | Thousands per report | A few consolidated queries |
| Root cause | Unknown | Found and proven |
| Fix approach | Report by report | A repeatable pattern |
The proof of concept showed that the hour-long reports could be interactive again, without changing the database. The client’s team now has a tested pattern to apply across its report library, and expert help when it needs it.
Lessons for any slow Telerik report
- Count the database calls, not just the query time. Fast queries still make a slow report if they run thousands of times.
- Watch out for nested data sources. A table inside a table with its own data source runs one query per parent row.
- Load once, bind many. Fetch the data in as few queries as possible and pass it to nested items with bindings.
- Calculate totals in the report. If the data is already loaded, use report aggregates instead of extra totals queries.
- Trace before you tune. SQL tracing shows where the time really goes, before anyone rewrites queries or adds indexes.
- Keep the stack current. Newer Telerik Reporting releases bring fixes, features and a better-supported designer.
Are your Telerik reports taking minutes, or hours, to render? The cause is often in the report design, not the database. Our Telerik Reporting Health Check finds the real bottleneck and proves a fix before you roll it out across your report library.