[TYPO3-dev] Improve DB performance

Martin Kutschker Martin.Kutschker at n0spam-blackbox.net
Fri Mar 16 12:43:01 CET 2007


Dmitry Dulepov schrieb:
> Peter Russ wrote:
> 
>> As often query results are sorted by sorting or crdate or tstamp it 
>> might be helpful if at least this fields in tables pages and 
>> tt_content would be indexed. At kickstarter this should be also 
>> included per default.
>>
>> Not tested, but I guess it might help.
> 
> Firsts, we need to log typical queries. Then we can see what indexes 
> would be most welcome. If you have time, can you do it?

How to do this?

Hack into t3lib_db or make an XCLASS and add logging code to the queries: 
log the query and the execution time together with the session key to be 
able to see what queries belong to one page hit.

Masi




More information about the TYPO3-dev mailing list