Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This page documents our suggested best practices for using powerful Reporting macros and some common mistakes to avoid.

Suggested best practices

Table of Contents
maxLevel1

Avoid using nested reports

While writing reports it is always a good idea to utilize single-layer reports rather than multi-layer (nested) reports because it is easier to execute and has better performance due to its simplicity.

Pop quiz

...

Which of the following two reports are a better option for getting the titles of grandchildren pages?

Image Modified

Answer

...

Cloak

The answer is option A because it is simple and it does not use nested reporter macros.

Avoid using the @all and @global parameters in Content Reporter

Using the @all and @global parameters for the Content Reporter macro is not encouraged for large Confluence instances because it will query all contents created on all spaces. This will inevitably cause huge performance issues.

As such, using the SPACE KEY (Any other space key may be specified explicitly) parameter or the @self (The space the current content is in) the parameter can be used for faster reporting results.

Image Modified

Always keep the Match All Criteria parameter checked in Content Reporter

...

On the other hand, if it is unchecked (set to False) then it will attempt to report any of the parameter values. Doing so in large Confluence instances will cause huge performance issues due to Content Reporter's attempt to report large results.Image Removed

...

Use Sort macros to have sorted results

...

If you need to filter results from the Combining Reporter macro, it is best to apply filters on each of the nested reporter macros rather than having a filter on the Combining Reporter macro.

Image Modified

Scaling up users with the User Reporter macro

...