Changeset 498 for trunk/statistic.php


Ignore:
Timestamp:
Jan 30, 2013, 10:33:07 PM (12 years ago)
Author:
chronos
Message:
  • Upraveno: Optimalizace výpisu překladových položek v seznamu.
  • Přidáno: Nastavení časové zóny z PHP.
  • Upraveno: Tabulky převedeny z myisam na innodb. Doplněny indexy a cizí klíče. Provedeny některé optimalizace načítání.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/statistic.php

    r463 r498  
    1919  {
    2020    $Query .= 'SELECT (SELECT COUNT(DISTINCT(`Entry`)) FROM ('.
    21     ' SELECT `T`.* FROM `'.$DbRow['TablePrefix'].'` AS `T`'.
     21    ' SELECT `T`.`Id`, `T`.`Entry` FROM `'.$DbRow['TablePrefix'].'` AS `T`'.
    2222    ' WHERE (`Complete` = 1) AND (`Language`='.$LanguageId.') AND (`VersionStart` <= '.$BuildNumber.') AND (`VersionEnd` >= '.$BuildNumber.')'.
    2323    ') AS `C1`) AS `Translated`, '.
    2424    '(SELECT COUNT(DISTINCT(`Entry`)) FROM ('.
    25     ' SELECT `T`.* FROM `'.$DbRow['TablePrefix'].'` AS `T`'.
     25    ' SELECT `T`.`Id`, `T`.`Entry` FROM `'.$DbRow['TablePrefix'].'` AS `T`'.
    2626    ' WHERE (`Language` = 0) AND (`VersionStart` <= '.$BuildNumber.') AND (`VersionEnd` >= '.$BuildNumber.')'.
    2727    ') AS `C2`) AS `Total`, "'.$DbRow['Name'].'" AS `Name` UNION ';
Note: See TracChangeset for help on using the changeset viewer.