Show
Ignore:
Timestamp:
07/07/09 13:05:54 (13 months ago)
Author:
cedric@…
Message:

optimisation des perfos sur le critere {id_mot=..}
on utilise le nommage des champs qui reprend implicitement le type pour eviter une jointure

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • _plugins_/forms/forms_et_tables_1_9_1/public/forms_boucles.php

    r27599 r29726  
    2929                        $boucle->modificateur['crit_id_mot']['select'][] =  "donnees_champs.valeur AS id_mot"; 
    3030                        $boucle->modificateur['crit_id_mot']['from']["donnees_champs"] =  "spip_forms_donnees_champs"; 
    31                         $boucle->modificateur['crit_id_mot']['from']["champs"] =  "spip_forms_champs"; 
    32                         $boucle->modificateur['crit_id_mot']['where'][]= array("'='", "'$id_table.id_form'", "'champs.id_form'"); 
    33                         $boucle->modificateur['crit_id_mot']['where'][]= array("'='", "'champs.type'", "'\"mot\"'"); 
    34                         $boucle->modificateur['crit_id_mot']['where'][]= array("'='", "'donnees_champs.champ'", "'champs.champ'"); 
    3531                        $boucle->modificateur['crit_id_mot']['where'][]= array("'='", "'donnees_champs.id_donnee'", "'$id_table.id_donnee'"); 
     32                        #$boucle->modificateur['crit_id_mot']['from']["champs"] =  "spip_forms_champs"; 
     33                        #$boucle->modificateur['crit_id_mot']['where'][]= array("'='", "'$id_table.id_form'", "'champs.id_form'"); 
     34                        #$boucle->modificateur['crit_id_mot']['where'][]= array("'='", "'champs.type'", "'\"mot\"'"); 
     35                        $boucle->modificateur['crit_id_mot']['where'][]= array("'LIKE'", "'donnees_champs.champ'", "'\'mot%\''"); 
    3636                        //$boucle->modificateur['crit_id_mot']['group'][] = $id_table . '.id_donnee';  
    3737