Project

General

Profile

Actions

Bug #22789

closed

Calls to t3lib_befunc::translationCount slow down backend

Added by Susanne Moog over 14 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-06-02
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

If you have lot of content elements on a page and view it in the page module (Web>Page) it renders very slowly because of multiple calls to the function translationCount (which is called regardless of available alternative languages). #22341 already adds the index (for 4.4) - but the function should not be called if it's not needed - which is most of the time:

It gets called to render the message that appears in the alert box if you press "delete element". So the message is needed only when it's actually pressed, but no need to render e.g. 70 messages and call the function 70 times if you don't delete any element in the end.

(issue imported from #M14592)


Files

14592.diff (5.06 KB) 14592.diff Administrator Admin, 2010-06-05 15:16

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #22341: Missing key on l18n parent in tt_content tableClosedChristian Kuhn2010-03-29

Actions
Actions #1

Updated by Dmitry Dulepov over 14 years ago

I would cache results of that function in a static variable... And have a combined MySQL index for all interesting columns.

Actions #2

Updated by Susanne Moog over 14 years ago

The attached patch replaces the delet alert box with an extJS confirmation window using ExtDirect to fetch the message (and the translation count) on demand after clicking delete.

Actions #3

Updated by Alexander Opitz over 11 years ago

  • Status changed from New to Needs Feedback
  • Target version deleted (0)

What is the state of this issue, already fixed in newer TYPO3 CMS versions?

Actions #4

Updated by Alexander Opitz about 11 years ago

  • Is Regression set to No

No response in over 3 month so closing this issue.

If you think this issue should be reopened, then write to the bugs mailing list.

Actions #5

Updated by Alexander Opitz about 11 years ago

  • Status changed from Needs Feedback to Closed
Actions

Also available in: Atom PDF