---
title: "Feature: #69439 - Enhance SQL query reduction in page tree in workspaces"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:feature-69439"
source: "Changelog/8.1/Feature-69439-EnhanceSQLQueryReductionInPageTreeInWorkspaces.rst"
typo3-version: "8.1"
typo3-major: 8
type: "feature"
issue: 69439
forge: "https://forge.typo3.org/issues/69439"
tags: ["Database", "LocalConfiguration", "ext:workspaces"]
rendered: "2026-09-20T18:31:11+00:00"
---

# Feature: #69439 - Enhance SQL query reduction in page tree in workspaces {#feature-69439}

See [forge#69439](https://forge.typo3.org/issues/69439)

## Description {#description}

The process of determining whether a page has workspace versions can be
extended by custom application code utilizing hooks. This way, the meaning
of having versions can be further modified by hooks. For instance the
default behavior of the TYPO3 core is to create a workspace version
record on persisting the same record in the backend - without any
actual changes to the data model.

-   $GLOBALS\['TYPO3_CONF_VARS'\]\['SC_OPTIONS'\]\['TYPO3\\CMS\\Workspaces\\Service\\WorkspaceService'\]\['hasPageRecordVersions'\]
    \+ $parameters\['workspaceId'\]: The submitted workspace ID
    \+ $parameters\['pageId'\]: The submitted page ID
    \+ $parameters\['versionsOnPageCache'\]: Reference to the state array
-   $GLOBALS\['TYPO3_CONF_VARS'\]\['SC_OPTIONS'\]\['TYPO3\\CMS\\Workspaces\\Service\\WorkspaceService'\]\['fetchPagesWithVersionsInTable'\]
    \+ $parameters\['workspaceId'\]: The submitted workspace ID
    \+ $parameters\['pageId'\]: The submitted page ID
    \+ $parameters\['pagesWithVersionsInTable'\]: Reference to the state array

## Impact {#impact}

The hooks introduce the possibility to modify the determined results - only if those hooks are used.
