[BUGFIX] Page tree request in a workspaces times out 53/52853/2
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 14:03:35 +0000 (16:03 +0200)
commitcde94b4b864e622d4ba3012bb804318d35c7a519
treee5b81a8711bc04ceef6ffa242373db5287a7f501
parent90078db3943de732a3890550218cf31d9c5a2591
[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/52853
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/workspaces/Classes/Service/WorkspaceService.php