Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SSRS Parameters - Values from a query (parallelism)

I have SSRS report that has a single data source - SSAS Tabular cube.

The report has 15 parameters that gets their values from the queries (datasets).

When a user opens the report, each parameter is populated, but each query execution is serialized (confirmed by Profiler / Execution Log). Each execution takes up to 70ms. As a result, it takes 1,000-1,200 ms just to open a report.

Is there a way to populate the report parameters in parallel?

Note that

  • when the report is running (user clicks "View Report"), all charts datasets are being executed in parallel, so SSAS/SSRS is definitely able to execute the queries in parallel.
  • "Use single transaction when processing the queries" checkbox is not checked for the data source.

SSRS/SSAS versions: 2016, latest SP/CU, Ent & Dev

UPDATE: if I change the data source to SQL Server, the issue persists, SSRS is not executing the queries (for Report Parameters) in parallel.

like image 946
Anton Avatar asked Nov 08 '22 07:11

Anton


1 Answers

Could you double check whether the datasets were executed in parallel or not? By default, datasets in a report are executed in parallel no matter they are generated from a single data source or multiple data sources. In your scenario, since the datasets use the same data source, and the “Use single transaction when processing the queries” option is not checked for the data source, the datasets should execute in parallel.

like image 81
Alfin E. R. Avatar answered Nov 15 '22 08:11

Alfin E. R.