mirror of
https://codeberg.org/demostf/api.git
synced 2026-06-03 18:04:08 +02:00
add materialized view for map list
This commit is contained in:
parent
c620740592
commit
060346deba
1 changed files with 1 additions and 1 deletions
|
|
@ -6,7 +6,7 @@ namespace Demostf\API\Providers;
|
|||
|
||||
class InfoProvider extends BaseProvider {
|
||||
public function listMaps() {
|
||||
$sql = 'SELECT DISTINCT(map), COUNT(map) AS count from demos GROUP BY map ORDER BY count DESC';
|
||||
$sql = 'SELECT map, count FROM map_list';
|
||||
$result = $this->query($sql);
|
||||
|
||||
return $result->fetchAll(\PDO::FETCH_COLUMN);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue