Posted: 12 Jun 2015 10:23 EDT Last activity: 15 Jun 2015 13:45 EDT
Difference Between Accessing Data by Report Defination and Data Page with Refresh Strategy as "Once Per Interaction".?
I want to ask about the difference in the performance when using report defination and Data page with Once per transaction refresh strategy.
Data page is used to improve the performance by not going to database every time but with the refresh srategy as once per transaction it is going to database every time. so instead of data page we can use report defination because it will do the same. So how the Data Page increase the Performance and when to use it.
Data pages are still recommended in this scenario for several reasons:
1. Data vitrualization - the best practice is to separate the physical data model (report) from the logical data model (data page) so that your applications are more easily able to react to change.
2. Parameterization - data pages can be parameterized and called from many places with their parameters. This is not true of reports.
3. Reuse - you may only require a single data source (report) for your data page now, but if this changes in the future, you're much better setup to account for that change so your data page can be reused in multiple different contexts. Additionally, if you need to swap the data source out with a different report or different source type, you only have to do this on the data page vs. everywhere your report is referenced.
4. Deletion - read-only data pages can be automatically deleted by the system after non-use. Requestor level pages can be deleted automatically when there are no longer any referring threads.
5. Scoping - data pages can be requestor or node-level, thereby increasing resource sharing and improving performance.
6. Tooling - All of the tooling related to data in the product is centered on data types and data pages (e.g. data explorer and data designer), which makes using data pages far easier.
7. Future optimizations - There will be future performance optimizations at the data page layer.
That said, you should really only be using refresh per interaction if you absolutely have to. It's better to use alternative refresh strategies when possible.
Thanks for your resolving my confusion. Your explanation is very precise and to the point.
One more thing is that do we have and out of box when rule which keep track of modification in datatable. for eg: if there is insert or delete of row in datatable, or is there any way apart from declare trigger to find that datatable has changed so that we can create custom when rule for refresh condition.
Posted: 6 years ago
Posted: 15 Jun 2015 8:24 EDT
Kalim Saliba (SALIK)
Senior Director, Product Engineering, Runtime Engine