Query Metrics
22
Database Queries
21
Different statements
109.36 ms
Query time
0
Invalid entities
Grouped Statements
| Time▼ | Count | Info |
|---|---|---|
|
30.18 ms (27.60%) |
1 |
with totals as ( select count (*) filter ( where (porcentaje_ocupacion > 80 OR kpi_27_urban_equipment_at_15_min < 6 OR kpi_21_average_price_renting_compared_family_income >= 0.40)) as blg_analytics, count (*) as blg, sum(mgm.numberofdwellings) filter (where (porcentaje_ocupacion > 80 OR kpi_27_urban_equipment_at_15_min < 6 OR kpi_21_average_price_renting_compared_family_income >= 0.40) ) as dwe_analytics, sum(mgm.numberofdwellings) as dwe, sum(mgm.habitantes) filter (where (porcentaje_ocupacion > 80 OR kpi_27_urban_equipment_at_15_min < 6 OR kpi_21_average_price_renting_compared_family_income >= 0.40) ) as hab_analytics, sum(mgm.habitantes) as hab from mat_map_geo_buildings mgm where adminunit in (25003) and mgm.use <> '-' ) select round(100 * blg_analytics::numeric / blg, 0) as blg_per, round(100 * dwe_analytics::numeric / dwe, 0) as dwe_per, round(100 * hab_analytics::numeric / hab, 0) as hab_per, * from totals
Parameters:
[] |
|
20.51 ms (18.75%) |
1 |
SELECT adminunitname, geom, Box2D(ST_envelope(geom)) AS envelope FROM public.map_geo_municipio WHERE adminunit = 25003 LIMIT 1;
Parameters:
[] |
|
19.04 ms (17.41%) |
1 |
select inspireid, censalsection, district from mat_map_geo_buildings mmgb where adminunit in (25003) and (porcentaje_ocupacion > 80 OR kpi_27_urban_equipment_at_15_min < 6 OR kpi_21_average_price_renting_compared_family_income >= 0.40)
Parameters:
[] |
|
19.03 ms (17.40%) |
1 |
with totals as ( select count (*) as blg_analytics, count (*) as blg, sum(mgm.numberofdwellings) as dwe_analytics, sum(mgm.numberofdwellings) as dwe, sum(mgm.habitantes) as hab_analytics, sum(mgm.habitantes) as hab from mat_map_geo_buildings mgm where adminunit in (25003) ) select round(100 * blg_analytics::numeric / blg, 0) as blg_per, round(100 * hab_analytics::numeric / hab, 0) as hab_per, round(100 * dwe_analytics::numeric / dwe, 0) as dwe_per, * from totals
Parameters:
[] |
|
2.68 ms (2.45%) |
1 |
select * from stat_analytic_related_kpis sa join kpi k on k.id = sa.kpi left join analytic_related_kpis ark on ark.analytic_id = sa.analytic and ark.kpi_id = sa.kpi where adminunit in (25003) and analytic = 8 order by ark.order
Parameters:
[] |
|
1.72 ms (1.57%) |
1 |
select * from public.map_geo_municipio where adminunit = 25003;
Parameters:
[] |
|
1.67 ms (1.52%) |
1 |
select * from stat_analytic_related_kpis sa join kpi k on k.id = sa.kpi left join analytic_related_kpis ark on ark.analytic_id = sa.analytic and ark.kpi_id = sa.kpi where adminunit in (25003) and analytic = 8 order by category
Parameters:
[] |
|
1.46 ms (1.34%) |
1 |
SELECT kpi_legend.bgcolor, kpi_legend.min, kpi_legend.max, kpi_legend.kpi_id FROM public.kpi_legend -- GROUP BY kpi_legend.kpi_id, kpi_legend.id order by kpi_legend.kpi_id, kpi_legend.min ASC
Parameters:
[] |
|
1.41 ms (1.29%) |
1 |
select * from stat_analytic_data where adminunit in (25003) and analytic = 8
Parameters:
[] |
|
1.35 ms (1.23%) |
1 |
select * from stat_analytic_buildinguse where adminunit in (25003) and analytic = 8
Parameters:
[] |
|
1.31 ms (1.20%) |
1 |
SELECT t0.id AS id_1, t0.name AS name_2, t0.filter AS filter_3, t0.status AS status_4, t0.range_min AS range_min_5, t0.range_max AS range_max_6, t0.level AS level_7, t0.slug AS slug_8 FROM analytic t0 WHERE t0.slug = ?
Parameters:
[
"vida-inasequible-y-falta-de-equidad-social"
]
|
|
1.21 ms (1.10%) |
1 |
select * from stat_analytic_grossfloorarea where adminunit in (25003) and analytic = 8
Parameters:
[] |
|
1.15 ms (1.05%) |
1 |
select * from stat_analytic_year where adminunit in (25003) and analytic = 8
Parameters:
[] |
|
1.14 ms (1.04%) |
1 |
SELECT t0.id AS id_1, t0.question AS question_2, t0.response AS response_3, t0.datecache AS datecache_4, t0.adminunit AS adminunit_5 FROM cache_ai t0 WHERE t0.question = ? AND t0.adminunit = ? LIMIT 1
Parameters:
[ "Indicadores: tema: Vida inasequible y falta de equidad social edificios: 312 (24%) habitantes: 637 (12%) población con ingresos inferiores al 60% de la media: 0.00 (nivel: bajo)\nprecio de la vivienda (€/m2): 2.92 (nivel: bajo)\nsuperficies de zonas verdes (Ha): 1.86 (nivel: bajo)\nviviendas energéticamente eficientes: 0.00 (nivel: bajo)\npotencial de generación solar fotovoltaica (kWh/m²año): 8658.23 (nivel: bajo)\nviviendas energéticamente eficientes y recuperadoras de energía: 0.15 (nivel: bajo)\nequipamiento urbano a 15 minutos caminando: 3.65 (nivel: bajo)\nprecio medio alquiler comparado ingresos familiares (%): 0.26 (nivel: bajo)\nacceso al carril bici: 0.00 (nivel: bajo)\nacceso a puntos de recarga: (nivel: )\n" 25003 ] |
|
1.14 ms (1.04%) |
1 |
SELECT c0_.id AS id_0, c0_.fk_config_id AS sclr_1, c0_.fk_layers_id AS sclr_2, c0_.style AS style_3 FROM config_geo_layers c0_ ORDER BY c0_.fk_config_id ASC
Parameters:
[] |
|
1.08 ms (0.99%) |
1 |
select * from stat_analytic_ocupacion where adminunit in (25003) and analytic = 8
Parameters:
[] |
|
0.94 ms (0.86%) |
1 |
select * from public.kpi where activo = 1 order by kpi.category, kpi.id ASC;
Parameters:
[] |
|
0.77 ms (0.70%) |
1 |
SELECT l0_.id AS id_0, l0_.name AS name_1, l0_.name_geo_server AS name_geo_server_2, l0_.static AS static_3, l0_.zoom_min AS zoom_min_4, l0_.zoom_max AS zoom_max_5, l0_.position AS position_6, l0_.slug AS slug_7, l0_.token AS token_8, l0_.auth_key AS auth_key_9, l0_.opacity AS opacity_10, l0_.grouped AS grouped_11, l0_.visibility AS visibility_12 FROM layers l0_ ORDER BY l0_.grouped ASC
Parameters:
[] |
|
0.69 ms (0.63%) |
2 |
SELECT x.* FROM public.analytic x WHERE x.status = 1 AND x.id = 8 ;
Parameters:
[] |
|
0.50 ms (0.46%) |
1 |
select bgcolor from public.kpi_legend where kpi_id = 3;
Parameters:
[] |
|
0.39 ms (0.35%) |
1 |
SELECT x.* FROM public.analytic x WHERE x.status = 1
Parameters:
[] |
Database Connections
| Name | Service |
|---|---|
| default | doctrine.dbal.default_connection |
Entity Managers
| Name | Service |
|---|---|
| default | doctrine.orm.default_entity_manager |
Second Level Cache
Second Level Cache is not enabled.
Entities Mapping
| Class | Mapping errors |
|---|---|
| App\Entity\Municipio | No errors. |
| App\Entity\Analytic | No errors. |
| App\Entity\CacheAi | No errors. |
| App\Entity\Layers | No errors. |
| App\Entity\ConfigGeoLayers | No errors. |
| App\Entity\ConfigGeoServer | No errors. |