Project

General

Profile

Actions

Feature #16667

closed

Database keys

Added by Nikolas Hagelstein about 18 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Database API (Doctrine DBAL)
Target version:
-
Start date:
2006-10-24
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

IMHO fields like deleted, hidden, sys_language_uid,. l18n_parent,sorting should be database indices by default for performance reasons.

(issue imported from #M4431)

Actions #1

Updated by Dmitry Dulepov about 18 years ago

"IMHO" is not a patch and not enough for any practical work. Database indexes is a complex thing and simply including all these fields to index will not work. If you have any real proposal, please, post them. Otherwise this bug report can be closed...

Actions #2

Updated by Nikolas Hagelstein about 18 years ago

At least deleted and hidden are fields rapitly used within where clauses.
Having them in a e.g Left join clause without beeing indexed dramiticly raises the query s runtime. (e.g left join on x.uid=y.uid and y.hidden=0).

Even if T3 itself does'nt make use of joins internally that much it might make senses anyway.

Regarding the I18l fields: having a huge amount of translation records makes it impossible to follow the T3 philisophie of fetching the default language and fetching the translation by fireing a second query. Therefor such a situation has to be solved by using complex joins for performance reason. In this scenarion the above named fields need to be indices (see left join example)

"Database indexes is a complex thing and simply including all these fields to index will not work."
For what reasons? Could you please explain?

Actions #3

Updated by Dmitry Dulepov about 13 years ago

  • Status changed from New to Resolved
  • Target version deleted (0)
  • TYPO3 Version changed from 4.0 to 4.6
  • PHP Version deleted (4)

That was resolved finally in 4.6.

Actions #4

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF