GET https://osm-labo.cipherbliss.com/admin/stats/42100/followup-graph/association

Query Metrics

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

Queries

Group similar statements

default connection

# Time Info
1 0.45 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:
[
  "42100"
]
2 17.63 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:
[
  26843
  "association_count"
  "association_completion"
]
3 103.94 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:
[
  "42100"
]
4 0.21 ms
"START TRANSACTION"
Parameters:
[]
5 0.34 ms
INSERT INTO action_log (type, data, created_at, from_url, who) VALUES (?, ?, ?, ?, ?)
Parameters:
[
  "[DEBUG][followupThemeGraph]"
  "{"theme":"association","tagKey":null,"tagValue":null,"main_tags":[],"places_count":0,"filtered_count":0,"filtered_main_tags":[]}"
  "2026-07-13 02:01:10"
  null
  null
]
6 5.51 ms
"COMMIT"
Parameters:
[]
7 2.23 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:
[
  26843
]
8 17.95 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:
[
  26843
]
9 0.58 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:
[
  26843
  "association"
]

osm connection

# Time Info
1 0.42 ms
SELECT 1
Parameters:
[]
2 2.88 ms
SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = 'public' AND table_name = 'osm_object_meta'
Parameters:
[]
3 0.87 ms
SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = ? AND table_name = ?
Parameters:
[
  "public"
  "osm_object_meta"
]
4 0.78 ms
SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = ? AND table_name = ?
Parameters:
[
  "public"
  "osm_object_history"
]
5 2.31 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 1.39 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 9.01 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:
[
  "42100"
]
8 1.04 ms
SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = ? AND table_name = ?
Parameters:
[
  "public"
  "osm_object_history"
]
9 0.42 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:
[
  "42100"
]
10 0.26 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.39 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:
[
  "42100"
]
13 2.46 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->'office') IN ('association','ngo') OR exist(tags, 'club') OR (tags->'social_facility') IN ('ngo','outreach'))
Parameters:
[
  "MULTIPOLYGON(((4.419118 45.565785,4.419079 45.565562,4.42011 45.564125,4.42077 45.562196,4.420842 45.561965,4.421045 45.561711,4.421289 45.561301,4.421527 45.560947,4.421544 45.560884,4.426942 45.555456,4.427002 45.550932,4.424798 45.549056,4.424577 45.548821,4.424368 45.548667,4.424202 45.548458,4.423961 45.547968,4.423879 45.547852,4.423818 45.547414,4.423674 45.546941,4.423614 45.546661,4.423678 45.546606,4.423884 45.546262,4.423934 45.546115,4.423842 45.545607,4.423854 45.545265,4.423999 45.544873,4.424004 45.544778,4.423513 45.544187,4.423316 45.543811,4.422995 45.543623,4.422758 45.543842,4.422661 45.544005,4.422294 45.544243,4.422003 45.544463,4.421819 45.544466,4.421573 45.544665,4.421015 45.544723,4.420813 45.544912,4.42082 45.545085,4.420449 45.545092,4.420327 45.545039,4.419751 45.545034,4.419442 45.545115,4.419241 45.545214,4.41877 45.545372,4.418291 45.545502,4.41816 45.545567,4.417805 45.545679,4.417539 45.545795,4.417218 45.545976,4.416895 45.546001,4.416722 45.546211,4.416705 45.546372,4.416779 45.546502,4.416676 45.546592,4.416101 45.546729,4.415529 45.546773,4.415412 45.546731,4.414939 45.546703,4.414762 45.546671,4.414606 45.546342,4.414465 45.546218,4.414237 45.54618,4.414096 45.546022,4.4139 45.545939,4.413338 45.545995,4.413014 45.545962,4.412733 45.545993,4.412544 45.546101,4.412324 45.546122,4.412215 45.546061,4.411945 45.546071,4.411972 45.546209,4.411869 45.546314,4.411867 45.546475,4.411691 45.546553,4.411513 45.546689,4.411313 45.546728,4.411228 45.546848,4.41101 45.546815,4.410746 45.546695,4.410455 45.546659,4.410147 45.546735,4.409623 45.546729,4.409399 45.5469,4.408949 45.546936,4.408817 45.547008,4.408756 45.54714,4.408566 45.547263,4.408505 45.547483,4.408501 45.547739,4.408335 45.547759,4.408218 45.547678,4.407845 45.547691,4.407579 45.548071,4.407509 45.548249,4.407257 45.548361,4.407157 45.54853,4.406884 45.548864,4.406834 45.54906,4.406657 45.549188,4.406479 45.549182,4.40608 45.549079,4.40577 45.549139,4.40564 45.549299,4.405346 45.549445,4.405361 45.549666,4.405221 45.550001,4.404886 45.550421,4.404729 45.55058,4.404618 45.550852,4.404293 45.55122,4.404131 45.551359,4.403929 45.5516,4.403614 45.551796,4.403596 45.551948,4.404005 45.552586,4.404047 45.552823,4.404128 45.552918,4.404093 45.553476,4.404132 45.553647,4.404387 45.553866,4.40447 45.554007,4.404659 45.554114,4.404752 45.554289,4.40475 45.554612,4.404914 45.554745,4.405231 45.554806,4.405294 45.554913,4.405245 45.555333,4.405489 45.555334,4.405682 45.555427,4.405767 45.555977,4.405652 45.556359,4.405713 45.5566,4.40556 45.5568,4.405422 45.556872,4.405191 45.556831,4.404743 45.557178,4.404352 45.557402,4.404189 45.55754,4.403998 45.557804,4.403794 45.557898,4.403849 45.558084,4.403853 45.558159,4.403987 45.558351,4.404128 45.558393,4.404189 45.558627,4.403997 45.558892,4.403759 45.559094,4.403684 45.55923,4.403725 45.55935,4.403868 45.559559,4.403881 45.559689,4.403813 45.559836,4.403579 45.560006,4.403362 45.560036,4.403178 45.560155,4.403177 45.560283,4.403303 45.560324,4.403247 45.5606,4.403507 45.560897,4.403708 45.56094,4.403842 45.561188,4.403815 45.561248,4.403554 45.561503,4.403579 45.561736,4.403511 45.562003,4.403237 45.562005,4.403243 45.562208,4.403009 45.562282,4.402999 45.562552,4.403079 45.562688,4.403097 45.562897,4.403012 45.563039,4.403023 45.563242,4.403153 45.563367,4.403131 45.563608,4.403058 45.563771,4.40296 45.564213,4.403106 45.564409,4.403095 45.56457,4.402761 45.564604,4.402736 45.564695,4.401771 45.565653,4.401828 45.56608,4.406417 45.56651,4.408729 45.565596,4.409172 45.565715,4.409243 45.565633,4.415951 45.566335,4.419118 45.565785)))"
]

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.