Prevent report processing on demand

The privilege called _PreventProcessDataOnDemand lets you control which users can reprocess tracking information. This feature helps administrators lower report processing times and improves server performance.

Report processing: background

If you have a server with many users querying reports on-demand (this means, logged into the application and viewing reports on the screen), you may observe high processing times for certain reports.

The report processing time depends on different factors:

  • If there’s unprepared data (such as today’s data).
  • The amount of tracking points to process.
  • The amount of users/processes querying reports in the server at the same time.
  • Server usage and speed.

How to setup

In Site Admin

    1. Update your plugins to the latest version.
    2. Enable in your application Privileges and Features, the privilege _PreventProcessDataOnDemand

blog_preventdataondemand_001.png

In the application

The idea is to set up a Role for a limited user. In this example, we’re going to use an Operator, but you can also create a copy of this role and assign it later to the user.
You have to set up your Operator privileges this way:

blog_preventdataondemand_002.png

This time, when the user tries to execute a report, will only be able to see data that has been processed already. You can see that the execution of such a report in the Site Admin > Reporting > Task Viewer, almost took no time or processing resources from your server.

blog_preventdataondemand_003.png

Report’s Data Processing

If we enable this new Privilege for your application or user, the question that raises is: when the data is going to be processed?

The answer relies on saving the report parameters. This task should be performed by an administrator of the application.

The Administrator configuring the report parameters:

blog_preventdataondemand_004.png
According to the administrator settings, these are the parameters that the user will be able to modify:

blog_preventdataondemand_005.png

When an administrator or a user with proper rights saves the report parameters, it will be processed automatically by the system once a day.