CIM37 - Performance update

This commit is contained in:
“VeLiTi”
2024-04-03 22:24:55 +02:00
parent 2cb07cfd47
commit e9d34d0017
2 changed files with 48 additions and 41 deletions

View File

@@ -141,8 +141,13 @@ switch ($action) {
break;
case 'geolocation':
$sql = 'SELECT e.* FROM equipment e '.$whereclause.'';
if ($whereclause == ''){
$whereclause = 'WHERE geolocation is not null';
} else {
$whereclause .= ' AND geolocation is not null';
}
$sql = 'SELECT distinct(geolocation) FROM equipment e '.$whereclause.'';
break;