https://api.dahnapp.com/api/menus/shopping_list/26137/categories

Query Metrics

34 Database Queries
11 Different statements
26.46 ms Query time
0 Invalid entities

Grouped Statements

Show all queries

Time Count Info
12.09 ms
(45.70%)
19
SELECT r0_.ingredient_id AS ingredient_id_0, r0_.quantity AS quantity_1, i1_.ingredient_name AS ingredient_name_2, i1_.unit_measure_id AS unit_measure_id_3, u2_.unit_measure_name AS unit_measure_name_4, u2_.abbreviation AS abbreviation_5, i1_.category_id AS category_id_6, i3_.category_name AS category_name_7, i3_.image AS image_8 FROM recipe_ingredients r0_ INNER JOIN ingredients i1_ ON (i1_.id = r0_.ingredient_id) INNER JOIN unit_measures u2_ ON (u2_.id = i1_.unit_measure_id) LEFT JOIN ingredient_categories i3_ ON (i3_.id = i1_.category_id) WHERE r0_.recipe_id = ? AND r0_.removed = 0
Parameters:
[
  91
]
5.09 ms
(19.23%)
2
"COMMIT"
Parameters:
[]
1.70 ms
(6.43%)
2
SELECT t0.id AS id_1, t0.menu_name AS menu_name_2, t0.menu_name_en AS menu_name_en_3, t0.category_id AS category_id_4, t0.calories AS calories_5, t0.proteins AS proteins_6, t0.fats AS fats_7, t0.sugar AS sugar_8, t0.active AS active_9, t0.removed AS removed_10, t0.energy AS energy_11, t0.carbohydrate AS carbohydrate_12, t0.fiber_total_dietary AS fiber_total_dietary_13, t0.total_fat AS total_fat_14, t0.fatty_acids_total_saturated AS fatty_acids_total_saturated_15, t0.fatty_acids_total_monosaturated AS fatty_acids_total_monosaturated_16, t0.fatty_acids_total_polyunsaturated AS fatty_acids_total_polyunsaturated_17, t0.cholesterol AS cholesterol_18, t0.retinol AS retinol_19, t0.vitamin_a AS vitamin_a_20, t0.carotene_alpha AS carotene_alpha_21, t0.carotene_beta AS carotene_beta_22, t0.cryptoxanthin_beta AS cryptoxanthin_beta_23, t0.lycopene AS lycopene_24, t0.lutein_zeaxanthin AS lutein_zeaxanthin_25, t0.thiamin AS thiamin_26, t0.riboflavin AS riboflavin_27, t0.niacin AS niacin_28, t0.vitamin_b6 AS vitamin_b6_29, t0.folic_acid AS folic_acid_30, t0.folate_food AS folate_food_31, t0.folate_dfe AS folate_dfe_32, t0.folate_total AS folate_total_33, t0.choline_total AS choline_total_34, t0.vitamin_b12 AS vitamin_b12_35, t0.vitamin_b12_added AS vitamin_b12_added_36, t0.vitamin_c AS vitamin_c_37, t0.vitamin_d_d2_d3 AS vitamin_d_d2_d3_38, t0.vitamin_e_alpha_tocopherol AS vitamin_e_alpha_tocopherol_39, t0.vitamin_e_added AS vitamin_e_added_40, t0.vitamin_k_phylloquinone AS vitamin_k_phylloquinone_41, t0.calcium AS calcium_42, t0.phosphorus AS phosphorus_43, t0.magnesium AS magnesium_44, t0.iron AS iron_45, t0.zinc AS zinc_46, t0.copper AS copper_47, t0.selenium AS selenium_48, t0.potassium AS potassium_49, t0.sodium AS sodium_50, t0.caffeine AS caffeine_51, t0.theobromine AS theobromine_52, t0.alcohol AS alcohol_53, t0.water AS water_54, t0.protein AS protein_55, t0.sugars_total AS sugars_total_56, t0.healthy_minutes AS healthy_minutes_57 FROM menus t0 WHERE t0.id = ? AND t0.active = ? AND t0.removed = ? LIMIT 1
Parameters:
[
  106
  1
  0
]
1.70 ms
(6.41%)
2
SELECT r0_.id AS id_0, r0_.recipe_name AS recipe_name_1, r0_.calories AS calories_2, r0_.proteins AS proteins_3, r0_.fats AS fats_4, r0_.sugar AS sugar_5, m1_.meal_type AS meal_type_6 FROM menu_recipes m1_ INNER JOIN recipes r0_ ON (r0_.id = m1_.recipe_id) WHERE m1_.menu_id = ? AND m1_.active = 1 AND m1_.removed = 0
Parameters:
[
  106
]
1.18 ms
(4.47%)
2
INSERT INTO favourite_menus (menu_id, user_id, session_id, added_at, planned_notification, notified_at) VALUES (?, ?, ?, ?, ?, ?)
Parameters:
[
  106
  26137
  12503
  "2025-04-14 21:48:51"
  "2025-04-15"
  null
]
0.92 ms
(3.46%)
1
SELECT f0_.id AS id_0, f0_.user_id AS user_id_1, f0_.created_at AS created_at_2 FROM favourite_menus_sessions f0_ WHERE f0_.user_id = ? AND f0_.created_at BETWEEN ? AND ?
Parameters:
[
  26137
  "2025-04-14 00:00:00"
  "2025-04-14 23:59:59"
]
0.88 ms
(3.33%)
1
SELECT t0.id AS id_1, t0.email_address AS email_address_2, t0.firstname AS firstname_3, t0.lastname AS lastname_4, t0.fullname AS fullname_5, t0.username AS username_6, t0.password AS password_7, t0.mobile_phone AS mobile_phone_8, t0.profile_image AS profile_image_9, t0.register_source AS register_source_10, t0.created_at AS created_at_11, t0.updated_at AS updated_at_12, t0.tos_consent_at AS tos_consent_at_13, t0.gdpr_consent_at AS gdpr_consent_at_14, t0.lang AS lang_15, t0.active AS active_16, t0.email_verified AS email_verified_17, t0.update_email_sent AS update_email_sent_18, t0.do_not_email AS do_not_email_19, t0.removed AS removed_20, t0.last_notification AS last_notification_21, t0.unit_measure AS unit_measure_22, t0.user_points AS user_points_23, t0.healthy_minutes AS healthy_minutes_24, t0.latest_subscription_id AS latest_subscription_id_25 FROM users t0 WHERE t0.id = ?
Parameters:
[
  26137
]
0.80 ms
(3.03%)
1
SELECT t0.id AS id_1, t0.language_name AS language_name_2, t0.language_shortname AS language_shortname_3 FROM language t0 WHERE t0.language_shortname = ? LIMIT 1
Parameters:
[
  "ro"
]
0.73 ms
(2.75%)
1
SELECT t0.id AS id_1, t0.token AS token_2, t0.expires_at AS expires_at_3, t0.user_id AS user_id_4 FROM api_token t0 WHERE t0.token = ? LIMIT 1
Parameters:
[
  "51ccd282b82757805ca5bf77bce2bd63e504b7e781a289bef68aa538db32e23b13af7c61bf6a24b0ceddd1f94b801b52fc5b95484db48d7e182a0d43"
]
0.69 ms
(2.62%)
1
INSERT INTO favourite_menus_sessions (user_id, created_at) VALUES (?, ?)
Parameters:
[
  26137
  "2025-04-14 21:48:51"
]
0.68 ms
(2.56%)
2
"START TRANSACTION"
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.