Hi all,

not sure this is the right place for this but in the "Default Report" 
(report.class.php:180 -> static function showDefaultReport) there are queries 
like 


   SELECT COUNT(*) AS count, `glpi_peripheraltypes`.`name` AS name 
   FROM `glpi_peripherals` 
   LEFT JOIN `glpi_peripheraltypes` ON (`glpi_peripherals`.`peripheraltypes_id` 
= `glpi_peripheraltypes`.`id`) 
   LEFT JOIN `glpi_computers_items` ON (`glpi_computers_items`.`itemtype` = 
'Peripheral' AND `glpi_computers_items`.`items_id` = `glpi_peripherals`.`id`) 
   WHERE `glpi_peripherals`.`is_deleted` = '0' AND 
`glpi_peripherals`.`is_template` = '0' 
   GROUP BY `glpi_peripheraltypes`.`name`


Does the "LEFT JOIN `glpi_computers_items`" do anything except for slowing down 
the query?

Didn't get my coffee yet so I may be missing something? :)



Lam

#####################################################################################

OPGELET
Indien deze email een uitnodiging is voor een vergadering dient de afgedrukte 
versie aan het onthaal voorgelegd te worden om toegang tot het gebouw te 
krijgen.

ATTENTION
Si cet e-mail est une convocation � une r�union, la version imprim�e devra �tre 
pr�sent�e � l�accueil pour obtenir l�acc�s au b�timent.
 
Klik ook op volgende link:
Cliquez aussi sur le lien suivant:
 
http://www.favv-afsca.fgov.be/disclaimer.htm
 
#####################################################################################
_______________________________________________
Glpi-dev mailing list
Glpi-dev@gna.org
https://mail.gna.org/listinfo/glpi-dev

Reply via email to