https://api.dahnapp.com/api/notifications/unread/32676

Query Metrics

4 Database Queries
4 Different statements
3.39 ms Query time
0 Invalid entities

Queries

Group similar statements

# Time Info
1 0.73 ms
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:
[
  "1b983a56b8247497d25abf2aca19812f3f71e9b0c4b6d0bf61a5b3d0ea626c03f47a6d75a554280f9ba369a9951312c97974230a0442f332e7c4dd01"
]
2 0.71 ms
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:
[
  32676
]
3 1.20 ms
SELECT COUNT(s0_.id) AS sclr_0 FROM scheduled_notifications s0_ LEFT JOIN user_viewed_notifications u1_ ON (s0_.id = u1_.notification_id AND u1_.user_id = ?) WHERE s0_.removed_at IS NULL AND s0_.runned_at IS NOT NULL AND u1_.id IS NULL
Parameters:
[
  32676
]
4 0.75 ms
SELECT COUNT(u0_.id) AS sclr_0 FROM user_notifications u0_ WHERE u0_.user_id = ? AND u0_.seen_at IS NULL
Parameters:
[
  32676
]

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.