Project

General

Profile

Actions

Bug #22986

closed

Slow query in sys_history due to missing key on tstamp / tablename

Added by Christian Kuhn over 14 years ago. Updated about 6 years ago.

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

0%

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

Description

  1. Time: 100624 8:35:03
  2. User@Host: foo[bar] @ localhost []
  3. Query_time: 2 Lock_time: 0 Rows_sent: 0 Rows_examined: 0
    DELETE FROM sys_history WHERE tstamp<1274769300 AND tablename='tt_news';

Create new key on tstamp + tablename, or change existing key combination / code

Initiated by:
t3lib/class.t3lib_tcemain.php
function clearHistory($maxAgeSeconds=604800,$table) {

(issue imported from #M14852)


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #24307: sys_history: optimize indexesClosedPatrick Broens2010-12-07

Actions
Actions

Also available in: Atom PDF