Forum Discussion
gatapia
5 years agoFrequent Visitor
Large dataset options for reporting server
I'm looking at building a large report (>100M rows) and I can't seem to find a good workign strategy on report server. On premium this is easy using deployment pipelines, or incremental refresh, etc...
gatapia
5 years agoFrequent Visitor
I managed to find a slightly better workaround (still terrible though) which worked in my scenario. I am using explicit SQL queries to get my data, i.e. not just pointing to a table, but actual select .... from .... I do the subset for development using a where clause.
What I needed to do in PROD was to ignore the where clause filtering the data. So what I did was created a service account to refresh the data on report server, say account was domain\svc_data_refresh. So then I just changed my query to:
select ... from table
where ...
and ((select CURRENT_USER) = 'domain\svc_data_refresh'
OR /* filter clause */ date_created > '2021-01-01')
This ignored the filter clause if the user is the service account. This way when I refresh data in PBI desktop (using my account) it filters data. The server using the service account refreshes the full dataset.