I'm using a couple of SQL data sources to populate parameters for a Telerik report. Some of these queries are loaded on very large databases and take upwards of of a minute to execute. I don't have a problem with that, but once values are selected by a user and the Preview button is clicked (in the Web Viewer) it takes even longer to generate the report. I couldn't understand why this was happening, as the resulting queries execute in a couple of seconds, so I started SQL profiler and discovered that the initial queries to populate the SQL data sources assigned to the parameters execute unnecessarily when you click that Preview button.
Is this expected behavior? Is there a way to prevent this from happening? I'd appreciate any help you could offer on the subject.
Thanks.
Is this expected behavior? Is there a way to prevent this from happening? I'd appreciate any help you could offer on the subject.
Thanks.