[BUGFIX] Page tree request in a workspaces times out 06/52506/4
authorOliver Hader <oliver@typo3.org>
Wed, 19 Apr 2017 19:24:38 +0000 (21:24 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 18 May 2017 13:52:44 +0000 (15:52 +0200)
commit4d056965fddd3768d669b7bdcd0a039a3c1ea1ba
tree99c2993d72cf2ea13eda8f566287bb4095984f90
parent2ad05572cb52caf82ef5e54ebe9a74a9a9e9cb5e
[BUGFIX] Page tree request in a workspaces times out

Tryign to determine workspace versions for a particular database table
results in a very long process execution time and possible timeout due
to the following reasons:

* in general a bug was introduced during the Doctrine DBAL migration
  which leads to misbehaviors in resolving versions for pages
* the SQL query implicitly creates an INNER JOIN with a huge result
  set that takes a long query time
* invalid types leading to possible flaws when using prepared statements

The SQL query has been split into using sub-queries now.

Change-Id: I4e4f69815bd73f0562f7ffbd6d411b417be7a18a
Resolves: #80898
Releases: master, 8.7
Reviewed-on: https://review.typo3.org/52506
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Xavier Perseguers <xavier@typo3.org>
Tested-by: Xavier Perseguers <xavier@typo3.org>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/workspaces/Classes/Service/WorkspaceService.php