GET https://osm-labo.cipherbliss.com/admin/stats/38549/followup-graph/train_station

Query Metrics

22 Database Queries
20 Different statements
1559.06 ms Query time
0 Invalid entities
506 Managed entities

Queries

Group similar statements

default connection

# Time Info
1 0.46 ms
SELECT t0.id AS id_1, t0.zone AS zone_2, t0.completion_percent AS completion_percent_3, t0.places_count AS places_count_4, t0.avec_horaires AS avec_horaires_5, t0.avec_adresse AS avec_adresse_6, t0.avec_site AS avec_site_7, t0.avec_accessibilite AS avec_accessibilite_8, t0.avec_note AS avec_note_9, t0.name AS name_10, t0.population AS population_11, t0.siren AS siren_12, t0.code_epci AS code_epci_13, t0.codes_postaux AS codes_postaux_14, t0.date_created AS date_created_15, t0.date_modified AS date_modified_16, t0.avec_siret AS avec_siret_17, t0.avec_name AS avec_name_18, t0.avec_email AS avec_email_19, t0.osm_data_date_min AS osm_data_date_min_20, t0.osm_data_date_avg AS osm_data_date_avg_21, t0.osm_data_date_max AS osm_data_date_max_22, t0.budget_annuel AS budget_annuel_23, t0.lat AS lat_24, t0.lon AS lon_25, t0.date_labourage_requested AS date_labourage_requested_26, t0.date_labourage_done AS date_labourage_done_27, t0.kind AS kind_28 FROM stats t0 WHERE t0.zone = ? LIMIT 1
Parameters:
[
  "38549"
]
2 2.33 ms
SELECT c0_.id AS id_0, c0_.name AS name_1, c0_.measure AS measure_2, c0_.date AS date_3, c0_.stats_id AS stats_id_4 FROM city_follow_up c0_ INNER JOIN stats s1_ ON c0_.stats_id = s1_.id WHERE s1_.id = ? AND c0_.name IN (?, ?) ORDER BY c0_.date ASC, c0_.id ASC
Parameters:
[
  27690
  "train_station_count"
  "train_station_completion"
]
3 127.18 ms
SELECT t0.id AS id_1, t0.uuid_for_url AS uuid_for_url_2, t0.osm_kind AS osm_kind_3, t0.email AS email_4, t0.opted_out AS opted_out_5, t0.dead AS dead_6, t0.note AS note_7, t0.modified_date AS modified_date_8, t0.zip_code AS zip_code_9, t0.asked_humains_support AS asked_humains_support_10, t0.last_contact_attempt_date AS last_contact_attempt_date_11, t0.osm_id AS osm_id_12, t0.name AS name_13, t0.has_opening_hours AS has_opening_hours_14, t0.has_address AS has_address_15, t0.has_website AS has_website_16, t0.has_wheelchair AS has_wheelchair_17, t0.has_note AS has_note_18, t0.main_tag AS main_tag_19, t0.note_content AS note_content_20, t0.displayed_date AS displayed_date_21, t0.lat AS lat_22, t0.lon AS lon_23, t0.street AS street_24, t0.housenumber AS housenumber_25, t0.siret AS siret_26, t0.habitants AS habitants_27, t0.osm_data_date AS osm_data_date_28, t0.osm_version AS osm_version_29, t0.osm_user AS osm_user_30, t0.osm_uid AS osm_uid_31, t0.osm_changeset AS osm_changeset_32, t0.email_content AS email_content_33, t0.place_count AS place_count_34, t0.stats_id AS stats_id_35 FROM place t0 WHERE t0.zip_code = ?
Parameters:
[
  "38549"
]
4 0.19 ms
"START TRANSACTION"
Parameters:
[]
5 69.47 ms
INSERT INTO action_log (type, data, created_at, from_url, who) VALUES (?, ?, ?, ?, ?)
Parameters:
[
  "[DEBUG][followupThemeGraph]"
  "{"theme":"train_station","tagKey":null,"tagValue":null,"main_tags":[],"places_count":0,"filtered_count":0,"filtered_main_tags":[]}"
  "2026-07-13 04:32:00"
  null
  null
]
6 1339.11 ms
"COMMIT"
Parameters:
[]
7 0.48 ms
SELECT t0.id AS id_1, t0.uuid_for_url AS uuid_for_url_2, t0.osm_kind AS osm_kind_3, t0.email AS email_4, t0.opted_out AS opted_out_5, t0.dead AS dead_6, t0.note AS note_7, t0.modified_date AS modified_date_8, t0.zip_code AS zip_code_9, t0.asked_humains_support AS asked_humains_support_10, t0.last_contact_attempt_date AS last_contact_attempt_date_11, t0.osm_id AS osm_id_12, t0.name AS name_13, t0.has_opening_hours AS has_opening_hours_14, t0.has_address AS has_address_15, t0.has_website AS has_website_16, t0.has_wheelchair AS has_wheelchair_17, t0.has_note AS has_note_18, t0.main_tag AS main_tag_19, t0.note_content AS note_content_20, t0.displayed_date AS displayed_date_21, t0.lat AS lat_22, t0.lon AS lon_23, t0.street AS street_24, t0.housenumber AS housenumber_25, t0.siret AS siret_26, t0.habitants AS habitants_27, t0.osm_data_date AS osm_data_date_28, t0.osm_version AS osm_version_29, t0.osm_user AS osm_user_30, t0.osm_uid AS osm_uid_31, t0.osm_changeset AS osm_changeset_32, t0.email_content AS email_content_33, t0.place_count AS place_count_34, t0.stats_id AS stats_id_35 FROM place t0 WHERE t0.stats_id = ?
Parameters:
[
  27690
]
8 2.12 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.measure AS measure_3, t0.date AS date_4, t0.stats_id AS stats_id_5 FROM city_follow_up t0 WHERE t0.stats_id = ?
Parameters:
[
  27690
]
9 0.41 ms
SELECT z0_.id AS id_0, z0_.disappeared_list AS disappeared_list_1, z0_.current_list AS current_list_2, z0_.theme AS theme_3, z0_.stats_id AS stats_id_4 FROM zone_places z0_ WHERE z0_.stats_id = ? AND z0_.theme = ? ORDER BY z0_.id ASC LIMIT 1
Parameters:
[
  27690
  "train_station"
]

osm connection

# Time Info
1 0.41 ms
SELECT 1
Parameters:
[]
2 2.01 ms
SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = 'public' AND table_name = 'osm_object_meta'
Parameters:
[]
3 0.81 ms
SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = ? AND table_name = ?
Parameters:
[
  "public"
  "osm_object_meta"
]
4 0.48 ms
SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = ? AND table_name = ?
Parameters:
[
  "public"
  "osm_object_history"
]
5 1.55 ms
SELECT COUNT(*) FROM osm_object_meta WHERE osm_type = 'relation'
                  AND geom IS NOT NULL
                  AND (tags->'admin_level') = '8'
                  AND (tags->'boundary') = 'administrative'
                  AND (tags->'ref:INSEE') IS NOT NULL
Parameters:
[]
6 0.77 ms
INSERT INTO osm_object_meta (
    osm_type, osm_id, geom, tags, version, osm_timestamp, changeset, osm_user, uid
)
SELECT
    'relation',
    latest.osm_id,
    latest.geom,
    latest.tags,
    latest.version,
    to_char(latest.valid_from AT TIME ZONE 'UTC', 'YYYY-MM-DD"T"HH24:MI:SS"Z"'),
    latest.changeset,
    latest.osm_user,
    latest.uid
FROM (
    SELECT DISTINCT ON (h.osm_id)
        h.osm_id,
        h.geom,
        h.tags,
        h.version,
        h.valid_from,
        h.changeset,
        h.osm_user,
        h.uid
    FROM osm_object_history h
    WHERE h.osm_type = 'relation'
      AND h.visible = true
      AND h.geom IS NOT NULL
      AND (h.tags->'boundary') = 'administrative'
      AND (h.tags->'admin_level') = '8'
      AND (h.tags->'ref:INSEE') IS NOT NULL
    ORDER BY h.osm_id, h.version DESC, h.valid_from DESC
) AS latest
WHERE NOT EXISTS (
    SELECT 1 FROM osm_object_meta m
    WHERE m.osm_type = 'relation' AND m.osm_id = latest.osm_id
)
Parameters:
[]
7 7.82 ms
SELECT ST_AsText(ST_Multi(geom)) AS wkt
FROM osm_object_meta m
WHERE osm_type = 'relation'
  AND geom IS NOT NULL
  AND (tags->'ref:INSEE') = ?
  AND (tags->'admin_level') = '8'
  AND (tags->'boundary') = 'administrative'
ORDER BY ST_Area(geom::geography) DESC NULLS LAST
LIMIT 1
Parameters:
[
  "38549"
]
8 0.74 ms
SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = ? AND table_name = ?
Parameters:
[
  "public"
  "osm_object_history"
]
9 0.33 ms
SELECT ST_AsText(ST_Multi(geom)) AS wkt
FROM (
    SELECT DISTINCT ON (h.osm_id)
        h.geom
    FROM osm_object_history h
    WHERE h.osm_type = 'relation'
      AND h.visible = true
      AND h.geom IS NOT NULL
      AND (h.tags->'ref:INSEE') = ?
      AND (h.tags->'admin_level') = '8'
      AND (h.tags->'boundary') = 'administrative'
    ORDER BY h.osm_id, h.version DESC, h.valid_from DESC
) latest
ORDER BY ST_Area(geom::geography) DESC NULLS LAST
LIMIT 1
Parameters:
[
  "38549"
]
10 0.19 ms
CREATE TABLE IF NOT EXISTS zone_polygon (
                    insee_code TEXT PRIMARY KEY,
                    geom geometry(MultiPolygon, 4326) NOT NULL,
                    source TEXT NOT NULL,
                    updated_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
                )
Parameters:
[]
11 0.26 ms
CREATE INDEX IF NOT EXISTS zone_polygon_geom_idx ON zone_polygon USING GIST (geom)
Parameters:
[]
12 0.42 ms
SELECT ST_AsText(ST_Multi(geom)) FROM zone_polygon WHERE insee_code = ?
Parameters:
[
  "38549"
]
13 1.52 ms
SELECT osm_type, osm_id::text AS osm_id, ST_Y(ST_Centroid(geom)) AS lat, ST_X(ST_Centroid(geom)) AS lon,
            tags::jsonb AS tags_json, version, osm_timestamp, changeset, osm_user, uid::bigint AS uid
            FROM osm_object_meta m
            WHERE geom IS NOT NULL AND ST_Intersects(m.geom, ST_GeomFromText(?, 4326))
            AND ((tags->'railway') IN ('station','halt') OR ((tags->'public_transport') = 'station' AND (tags->'train') = 'yes'))
Parameters:
[
  "MULTIPOLYGON(((6.027493 45.036662,6.0276 45.0367,6.028068 45.037054,6.0283 45.037677,6.028208 45.03822,6.028377 45.038845,6.028232 45.039525,6.028382 45.03988,6.028669 45.040366,6.028865 45.040449,6.029689 45.040422,6.030251 45.040779,6.030496 45.040713,6.031039 45.040449,6.031621 45.040147,6.032056 45.039994,6.0325 45.039791,6.033146 45.03961,6.033554 45.039531,6.034029 45.03979,6.034527 45.039639,6.035447 45.039158,6.036691 45.038756,6.037723 45.038046,6.038997 45.036969,6.039529 45.036365,6.041675 45.035221,6.042542 45.034878,6.043889 45.034306,6.043948 45.034065,6.044005 45.033973,6.044052 45.033701,6.043847 45.033483,6.043353 45.033076,6.044904 45.032007,6.045945 45.031432,6.046123 45.031246,6.04592 45.031072,6.045975 45.030936,6.046527 45.030647,6.047129 45.030141,6.047123 45.030051,6.048191 45.02988,6.048739 45.029546,6.049347 45.02894,6.050098 45.027835,6.05019 45.027292,6.051017 45.026363,6.051572 45.024994,6.051839 45.02422,6.05224 45.023575,6.053797 45.022173,6.054265 45.021581,6.054441 45.02117,6.053913 45.019917,6.053615 45.018307,6.052959 45.015898,6.052685 45.014645,6.052526 45.014156,6.051756 45.010985,6.050946 45.009301,6.049864 45.008113,6.049798 45.008069,6.049454 45.007676,6.048513 45.006897,6.047425 45.005808,6.047329 45.005316,6.047411 45.004638,6.047073 45.004154,6.046674 45.003853,6.046646 45.003448,6.047174 45.0028,6.047413 45.002566,6.047385 45.002163,6.046952 45.001645,6.046641 45.001432,6.046981 45.000685,6.047039 45.000157,6.046711 44.999844,6.046852 44.997768,6.047 44.997133,6.046982 44.996863,6.045981 44.996123,6.045952 44.995493,6.044653 44.994096,6.043373 44.992968,6.042905 44.992623,6.042812 44.992176,6.043853 44.990475,6.043923 44.989617,6.043517 44.988281,6.043545 44.987739,6.043711 44.987373,6.043748 44.986787,6.043658 44.986385,6.043034 44.985595,6.042151 44.984716,6.041573 44.983654,6.040384 44.982748,6.039424 44.982825,6.038981 44.98284,6.037189 44.982405,6.035073 44.982062,6.032952 44.980692,6.031574 44.980008,6.030877 44.980032,6.030209 44.980459,6.028864 44.981225,6.02673 44.982736,6.023824 44.983448,6.022277 44.983881,6.02029 44.984394,6.018573 44.985043,6.017466 44.985773,6.016765 44.986697,6.015985 44.988343,6.015324 44.991022,6.015384 44.99192,6.015651 44.993082,6.01579 44.995374,6.015019 44.99579,6.013777 44.996371,6.012175 44.997371,6.011387 44.998086,6.010934 44.998912,6.010907 44.999858,6.010812 44.999952,6.012138 45.000808,6.013172 45.002259,6.013787 45.002914,6.014846 45.004545,6.015231 45.005568,6.015281 45.006521,6.014918 45.007748,6.014748 45.00806,6.014661 45.008649,6.015007 45.009096,6.015046 45.00968,6.016286 45.01135,6.016729 45.012281,6.016914 45.013175,6.017624 45.014502,6.01884 45.016578,6.019453 45.017197,6.019315 45.017752,6.019588 45.01796,6.019941 45.018074,6.020194 45.018076,6.020417 45.018189,6.020533 45.018193,6.020904 45.018577,6.021824 45.019279,6.022976 45.020197,6.023687 45.020659,6.024227 45.020885,6.024491 45.021079,6.024818 45.021381,6.025113 45.021729,6.025235 45.021956,6.025411 45.022129,6.025533 45.022365,6.025536 45.022758,6.025562 45.022905,6.025641 45.023798,6.025981 45.024355,6.025459 45.025162,6.025406 45.026018,6.025363 45.027046,6.025566 45.027644,6.025376 45.027904,6.02503 45.028587,6.025025 45.028836,6.024933 45.029348,6.024845 45.029631,6.024546 45.029993,6.024595 45.030283,6.024498 45.030627,6.024349 45.03075,6.02413 45.030858,6.024005 45.031017,6.023942 45.031424,6.023594 45.031733,6.023023 45.031928,6.022849 45.032024,6.022722 45.032162,6.022633 45.032398,6.022628 45.03267,6.022674 45.03302,6.0226 45.033156,6.023165 45.033787,6.024091 45.034341,6.025455 45.03479,6.026228 45.035935,6.026687 45.036326,6.027015 45.036494,6.027493 45.036662)))"
]

Database Connections

Name Service
default doctrine.dbal.default_connection
osm doctrine.dbal.osm_connection

Entity Managers

Name Service
default doctrine.orm.default_entity_manager

Second Level Cache

Second Level Cache is not enabled.

Managed Entities

default entity manager

Class Amount of managed objects
App\Entity\CityFollowUp 504
App\Entity\Stats 1
App\Entity\ActionLog 1

Entities Mapping

Class Mapping errors
App\Entity\Stats No errors.
App\Entity\Place No errors.
App\Entity\StatsHistory No errors.
App\Entity\CityFollowUp No errors.
App\Entity\ZonePlaces No errors.
App\Entity\SireneEntreprise No errors.
App\Entity\ActionLog No errors.