[TYPO3] Realurl questions

Dmitry Dulepov [typo3] dmitry at typo3.org
Mon Sep 1 10:28:54 CEST 2008


Steffen Gebert wrote:
> Anybody knows why this has to be done? A simple SQL-query on sys_domains
> would return the pid...

Because it is at least one extra query for each request (sometimes more). 1000 requests - at least 100 extra queries. Do you want better performance? Than set rootpage_id once, don't be lazy ;) Or just use autoconfig for RealURL.

> Would this cause problems or didn't just anybody have >150 domains where
> fetching them from DB might be nicer and nobody implemented this :)

This is pretty bad to have this large number of domains in one tree. It hurts performance.

-- 
Dmitry Dulepov
TYPO3 Core team
My TYPO3 book: http://www.packtpub.com/typo3-extension-development/book
In the blog: http://typo3bloke.net/pages/book-reviews/presentation-zen-by-garr-reynolds/


More information about the TYPO3-english mailing list