Project

General

Profile

Actions

Bug #23486

closed

nested menu generates huge number of mysql queries

Added by Rutger Rek about 14 years ago. Updated over 10 years ago.

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

0%

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

Description

I'm experiencing performance problems on a typo3 installation of version 4.3.5. At some point mySQL logged 40.000+ queries for the generation of just 1 page. Turning of the mainmenu reduced the number significantly to about 715 queries, .. still quite a lot.

At first I turned off the setting "expAll = 1" in TMENU. Without it typo3 generated about 800 queries for the homepage. when only the first level has "expAll = 1" set, typo3 generated between 2000 and 4000 queries per page. Then I rebuild the menu in TS with just CONTENT objects, still the same problem occurs. After that I tried appending the TMENU with a content element (like below), and again same problem

lib.menu = HMENU
lib.menu {
entryLevel = 0
wrap = <ul>|</ul>
1 = TMENU
1 {
NO = 1
NO {
ATagTitle.field = description
wrapItemAndSub = <li class="no">|</li>
stdWrap.htmlSpecialChars = 1

after.stdWrap.cObject = COA
after.stdWrap.cObject {
stdWrap.wrap = &lt;ul&gt;|&lt;/ul&gt;
10 = CONTENT
10 {
table = pages
select {
selectFields = title as cow, uid as chicken
pidInList.field = uid
}
renderObj = TEXT
renderObj {
field = cow
wrap = &lt;li&gt;|&lt;/li&gt;
typolink.parameter.field = chicken
}
}
stdWrap.if.isTrue.numRows.table = pages
stdWrap.if.isTrue.numRows.select.pidInList.field = uid
}
}
...
When menu is generated with the code above, the log contains a vew cows and chickens but an awfull lot of the same queries being executed

(issue imported from #M15609)


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #57953: Rendering time of HMENU is really bad, maybe bug?Closed2014-04-15

Actions
Actions

Also available in: Atom PDF