GET https://osm-commerces.cipherbliss.com/admin/stats/01024/followup-graph/tree

Query Metrics

22 Database Queries
20 Different statements
426.60 ms Query time
0 Invalid entities
4538 Managed entities

Queries

Group similar statements

default connection

# Time Info
1 0.31 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:
[
  "01024"
]
2 62.73 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:
[
  27081
  "tree_count"
  "tree_completion"
]
3 72.56 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:
[
  "01024"
]
4 0.17 ms
"START TRANSACTION"
Parameters:
[]
5 0.27 ms
INSERT INTO action_log (type, data, created_at, from_url, who) VALUES (?, ?, ?, ?, ?)
Parameters:
[
  "[DEBUG][followupThemeGraph]"
  "{"theme":"tree","tagKey":null,"tagValue":null,"main_tags":[],"places_count":0,"filtered_count":0,"filtered_main_tags":[]}"
  "2026-07-15 06:23:44"
  null
  null
]
6 244.90 ms
"COMMIT"
Parameters:
[]
7 0.45 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:
[
  27081
]
8 7.28 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:
[
  27081
]
9 0.45 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:
[
  27081
  "tree"
]

osm connection

# Time Info
1 0.34 ms
SELECT 1
Parameters:
[]
2 1.73 ms
SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = 'public' AND table_name = 'osm_object_meta'
Parameters:
[]
3 0.57 ms
SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = ? AND table_name = ?
Parameters:
[
  "public"
  "osm_object_meta"
]
4 0.46 ms
SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = ? AND table_name = ?
Parameters:
[
  "public"
  "osm_object_history"
]
5 1.69 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.76 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 5.59 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:
[
  "01024"
]
8 0.68 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:
[
  "01024"
]
10 0.22 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.25 ms
CREATE INDEX IF NOT EXISTS zone_polygon_geom_idx ON zone_polygon USING GIST (geom)
Parameters:
[]
12 0.60 ms
SELECT ST_AsText(ST_Multi(geom)) FROM zone_polygon WHERE insee_code = ?
Parameters:
[
  "01024"
]
13 24.26 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->'natural') = 'tree')
Parameters:
[
  "MULTIPOLYGON(((5.217322 46.293107,5.217289 46.293004,5.217128 46.292048,5.217005 46.290964,5.216935 46.290619,5.21667 46.290148,5.216313 46.289286,5.21601 46.288797,5.215707 46.288436,5.215595 46.288263,5.215406 46.287778,5.215231 46.28747,5.215411 46.287009,5.215752 46.286223,5.215871 46.286009,5.216166 46.28584,5.216265 46.285656,5.216262 46.285452,5.216555 46.284991,5.216702 46.284872,5.216557 46.284848,5.215916 46.284682,5.215189 46.28457,5.214793 46.28454,5.214635 46.28461,5.214602 46.284736,5.214616 46.285208,5.21297 46.285159,5.212866 46.286072,5.212192 46.286136,5.211538 46.28614,5.210879 46.286078,5.209277 46.285748,5.208383 46.285662,5.208037 46.285642,5.207129 46.285626,5.206328 46.285574,5.205707 46.285487,5.205012 46.285297,5.203369 46.284998,5.202014 46.284986,5.201328 46.284964,5.200037 46.284872,5.199814 46.284751,5.199832 46.284539,5.199966 46.283755,5.200114 46.283524,5.200285 46.283357,5.200847 46.282932,5.200987 46.282717,5.200957 46.282559,5.200476 46.281774,5.200701 46.281088,5.200767 46.280839,5.200817 46.280502,5.20093 46.280211,5.20122 46.279751,5.201397 46.279351,5.201604 46.279097,5.201735 46.278985,5.199316 46.278278,5.198234 46.278106,5.197948 46.277951,5.197718 46.277666,5.19751 46.277174,5.197294 46.277002,5.196535 46.276654,5.195851 46.276433,5.195068 46.276393,5.194715 46.276268,5.194312 46.275959,5.194087 46.275724,5.193515 46.274787,5.193151 46.273853,5.192802 46.273589,5.19296 46.273385,5.191841 46.272901,5.191736 46.273023,5.191444 46.273251,5.191202 46.27352,5.19032 46.274646,5.189946 46.275104,5.189534 46.275049,5.188751 46.274485,5.188401 46.274309,5.188048 46.27434,5.187567 46.274335,5.186963 46.274198,5.186797 46.273798,5.187114 46.27377,5.187366 46.273699,5.187875 46.273426,5.188523 46.272995,5.188229 46.272566,5.188583 46.272303,5.188795 46.272035,5.188868 46.27189,5.188851 46.271715,5.18825 46.270952,5.187291 46.270563,5.186911 46.270699,5.186681 46.270635,5.186431 46.270388,5.186291 46.270175,5.186453 46.270152,5.186644 46.270072,5.186747 46.269905,5.18653 46.269516,5.186498 46.269266,5.186577 46.269065,5.187513 46.268076,5.187615 46.267934,5.187568 46.267669,5.187201 46.267677,5.186926 46.267832,5.186579 46.268103,5.185965 46.268416,5.184303 46.267896,5.184063 46.267795,5.184473 46.267347,5.184572 46.267169,5.184456 46.26701,5.184081 46.266888,5.18489 46.266383,5.184263 46.266166,5.183832 46.266128,5.182977 46.265825,5.182871 46.265208,5.181257 46.264505,5.181353 46.264272,5.180484 46.264024,5.179961 46.264759,5.179633 46.264579,5.179005 46.264814,5.178923 46.264603,5.17861 46.264098,5.178441 46.263783,5.178338 46.263405,5.178256 46.263185,5.178002 46.262783,5.177485 46.262713,5.177294 46.26235,5.174941 46.262531,5.175904 46.260994,5.176215 46.260342,5.176761 46.259466,5.176493 46.259517,5.175687 46.259478,5.173865 46.25954,5.171046 46.259643,5.171035 46.259381,5.170849 46.259327,5.170548 46.259131,5.170299 46.258849,5.16964 46.258841,5.169653 46.258552,5.169452 46.257955,5.168615 46.257976,5.168377 46.2579,5.166709 46.257214,5.164545 46.256612,5.164636 46.256279,5.162587 46.256207,5.162406 46.256568,5.162229 46.256416,5.161813 46.25642,5.161403 46.256493,5.160767 46.256552,5.160438 46.256836,5.160148 46.256975,5.159959 46.257148,5.159854 46.257407,5.159586 46.257626,5.1593 46.257665,5.158921 46.257674,5.158583 46.257745,5.157701 46.258286,5.157415 46.258529,5.15718 46.258888,5.157218 46.259306,5.156878 46.259511,5.156798 46.259713,5.156544 46.25987,5.157235 46.260631,5.157375 46.260983,5.156927 46.261138,5.15752 46.26179,5.157924 46.262625,5.158244 46.262622,5.15843 46.262729,5.158598 46.262879,5.159347 46.263833,5.159923 46.264657,5.160078 46.264803,5.160003 46.265024,5.159902 46.265158,5.159681 46.265244,5.159053 46.265286,5.158573 46.265597,5.158525 46.26573,5.158458 46.266489,5.158143 46.267346,5.157621 46.267098,5.156834 46.267661,5.15674 46.267782,5.156607 46.268324,5.156627 46.268633,5.156576 46.268778,5.156495 46.269202,5.157123 46.269395,5.157042 46.269766,5.157027 46.269972,5.158569 46.270227,5.15841 46.271116,5.158408 46.271312,5.158314 46.271896,5.15818 46.272074,5.155946 46.27267,5.155465 46.272763,5.154425 46.272654,5.154039 46.27226,5.153577 46.271702,5.152903 46.271827,5.152837 46.272071,5.152041 46.272062,5.151391 46.27316,5.151266 46.273587,5.150055 46.273668,5.150151 46.274174,5.150818 46.275531,5.151488 46.27557,5.15122 46.275939,5.150939 46.276447,5.150828 46.276715,5.150663 46.277539,5.151158 46.277649,5.151044 46.277853,5.150726 46.278551,5.150589 46.278794,5.15046 46.278949,5.150376 46.278965,5.149503 46.278706,5.149174 46.279119,5.149728 46.279374,5.148785 46.28015,5.148004 46.280738,5.148232 46.280771,5.148436 46.281285,5.148446 46.281465,5.148198 46.281865,5.148149 46.282147,5.147719 46.282934,5.147483 46.282853,5.147246 46.283292,5.147241 46.283343,5.146938 46.283871,5.14649 46.284544,5.146275 46.284986,5.146041 46.285416,5.146044 46.285608,5.145387 46.285799,5.145056 46.286013,5.144938 46.286161,5.145056 46.287724,5.145467 46.287607,5.145413 46.288226,5.145359 46.288387,5.145418 46.288668,5.145417 46.288877,5.145308 46.289444,5.145245 46.28967,5.145428 46.289812,5.145554 46.290017,5.145581 46.290645,5.145805 46.291719,5.145797 46.291837,5.145181 46.292992,5.144978 46.293269,5.144769 46.293426,5.144583 46.293666,5.144528 46.294172,5.144318 46.295522,5.144161 46.296593,5.14411 46.296777,5.144455 46.296831,5.144833 46.296914,5.145395 46.297074,5.14568 46.297184,5.146306 46.2975,5.147151 46.297964,5.147477 46.298191,5.148092 46.298674,5.149762 46.299998,5.149799 46.300201,5.150446 46.301991,5.150712 46.301549,5.151455 46.300371,5.15178 46.299835,5.152255 46.299922,5.152299 46.300233,5.156076 46.300946,5.158122 46.301351,5.15789 46.30196,5.157933 46.302095,5.159265 46.30248,5.159389 46.302302,5.159611 46.302102,5.159844 46.302002,5.160199 46.302006,5.1604 46.301967,5.160644 46.301794,5.161362 46.300989,5.16163 46.300571,5.161786 46.300247,5.163474 46.300391,5.165333 46.300582,5.165668 46.300598,5.167333 46.300501,5.168036 46.300526,5.168314 46.300513,5.168507 46.300402,5.168757 46.300195,5.169265 46.299889,5.16967 46.299541,5.169982 46.299458,5.170661 46.299347,5.170932 46.299334,5.171027 46.299426,5.171076 46.299675,5.17132 46.299862,5.171426 46.300189,5.171515 46.300264,5.171706 46.300295,5.17196 46.300209,5.172533 46.299943,5.173093 46.299784,5.17309 46.299569,5.173135 46.299192,5.173142 46.298823,5.17309 46.298518,5.172974 46.298046,5.172972 46.297677,5.172995 46.297327,5.173123 46.297178,5.173275 46.297078,5.173476 46.297112,5.174092 46.297135,5.17448 46.297063,5.174614 46.296971,5.175283 46.296955,5.175778 46.296982,5.17729 46.297109,5.177792 46.297144,5.177822 46.297014,5.177981 46.296999,5.178375 46.297025,5.179652 46.297213,5.179985 46.297243,5.180187 46.297237,5.180533 46.297185,5.180767 46.297185,5.181205 46.297306,5.182759 46.297854,5.183901 46.298233,5.184114 46.298337,5.184365 46.298704,5.184582 46.298813,5.186011 46.298959,5.18712 46.299048,5.187894 46.299127,5.188285 46.299187,5.188275 46.299366,5.188646 46.299537,5.190728 46.299697,5.190724 46.300032,5.190776 46.300703,5.19068 46.301032,5.190358 46.301503,5.190025 46.301918,5.189871 46.302183,5.189817 46.302537,5.190314 46.302514,5.191051 46.302434,5.191852 46.302373,5.192721 46.302335,5.193487 46.302328,5.193816 46.302365,5.193882 46.303556,5.193977 46.303771,5.19408 46.304296,5.194087 46.304501,5.194202 46.304682,5.194126 46.304996,5.193876 46.305255,5.193747 46.305455,5.19375 46.305609,5.198985 46.30548,5.199628 46.305227,5.201242 46.305205,5.201568 46.305228,5.201717 46.305325,5.201813 46.305566,5.20207 46.306366,5.201896 46.306639,5.201869 46.307003,5.202183 46.307329,5.203648 46.308127,5.204344 46.308477,5.205652 46.309338,5.20587 46.309739,5.206152 46.309796,5.206298 46.309661,5.206497 46.309753,5.206273 46.309941,5.206867 46.310094,5.206777 46.310379,5.20666 46.310533,5.206794 46.310703,5.206713 46.310884,5.207082 46.311061,5.20779 46.310908,5.207883 46.310977,5.208424 46.310999,5.208515 46.31103,5.208548 46.31115,5.208464 46.311433,5.208476 46.311601,5.208871 46.311572,5.20959 46.311498,5.209937 46.311442,5.210363 46.311317,5.210596 46.311495,5.210552 46.311703,5.210292 46.312241,5.210219 46.312822,5.210314 46.313,5.210785 46.312894,5.210778 46.313107,5.210863 46.313214,5.212859 46.312867,5.213253 46.31297,5.213595 46.313135,5.213777 46.312683,5.213857 46.312239,5.21449 46.31234,5.214339 46.312732,5.214244 46.313166,5.214292 46.313551,5.214654 46.313574,5.215322 46.313557,5.215447 46.313742,5.215534 46.31418,5.215648 46.314609,5.215506 46.314824,5.215595 46.31516,5.216369 46.315309,5.217134 46.315428,5.217735 46.315405,5.218466 46.315405,5.218467 46.315068,5.218861 46.31502,5.219392 46.315007,5.220039 46.31503,5.220466 46.31465,5.220385 46.314617,5.219635 46.313779,5.219242 46.313042,5.218986 46.312458,5.218799 46.312262,5.218506 46.312096,5.218468 46.311957,5.218589 46.31174,5.218308 46.311564,5.218207 46.311462,5.218253 46.311177,5.218185 46.310906,5.21806 46.310817,5.218033 46.310535,5.217909 46.31045,5.217939 46.310192,5.217793 46.310064,5.21783 46.309927,5.217703 46.309682,5.217711 46.309573,5.217956 46.309375,5.218088 46.309158,5.217931 46.308698,5.217843 46.308087,5.217752 46.307896,5.217819 46.307645,5.217607 46.307312,5.217586 46.307201,5.217382 46.306782,5.217327 46.30659,5.217084 46.306363,5.216886 46.30602,5.216735 46.305827,5.216505 46.305611,5.216387 46.305424,5.215785 46.303812,5.215412 46.302921,5.215363 46.302712,5.215569 46.302075,5.215754 46.301256,5.215868 46.300915,5.215875 46.300315,5.215857 46.299985,5.216055 46.2993,5.216258 46.298508,5.21646 46.297815,5.216386 46.297608,5.216204 46.297369,5.21625 46.296927,5.216411 46.296466,5.216439 46.296155,5.216433 46.295769,5.216938 46.295793,5.216944 46.295432,5.217 46.294918,5.217269 46.2945,5.217294 46.294276,5.217011 46.294042,5.217061 46.293925,5.217356 46.293787,5.217469 46.293634,5.217439 46.293468,5.217322 46.293107)))"
]

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 4535
App\Entity\Stats 1
App\Entity\ActionLog 1
App\Entity\ZonePlaces 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.