---
title: "Deprecation: #50349 - Reduce SQL queries of page tree in workspaces"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:deprecation-50349"
source: "Changelog/7.4/Deprecation-50349-ReduceSQLQueriesOfPageTreeInWorkspaces.rst"
modified: "2026-09-15T10:46:36+00:00"
---

# Deprecation: #50349 - Reduce SQL queries of page tree in workspaces

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

## Description

The performance of the calculation of versions of a record has been improved. Therefore the method
`TYPO3CMSBackendUtility::countVersionsOfRecordsOnPage()` has been marked as deprecated and is being replaced with
`TYPO3CMSWorkspacesServiceWorkspaceService::hasPageRecordVersions()`.

## Impact

All calls to the PHP method will throw a deprecation warning.

## Affected Installations

Instances which make use of `TYPO3CMSBackendUtility::countVersionsOfRecordsOnPage()`

## Migration

Use `TYPO3CMSWorkspacesServiceWorkspaceService::hasPageRecordVersions()` instead.
