Improve page loading speed for pages with many children
Description
When viewing any page in a space managed by Scroll Versions or Scroll Translations, the initial request to the /pages/viewpage.action (or /display/<space_key>/<page_title>) endpoint involves the construction of a context object with data related to Scroll Versions / Translations.
This context object also contains the amount of child pages the current page has, not including version change pages. The calculation of this number involves permission checks and retrieval of content properties for each child page, which slow down the page load considerably if a page has many direct children (for example > 100).
When viewing any page in a space managed by Scroll Versions or Scroll Translations, the initial request to the
/pages/viewpage.action
(or/display/<space_key>/<page_title>
) endpoint involves the construction of a context object with data related to Scroll Versions / Translations.This context object also contains the amount of child pages the current page has, not including version change pages. The calculation of this number involves permission checks and retrieval of content properties for each child page, which slow down the page load considerably if a page has many direct children (for example > 100).