GET https://kbin.spritesserver.nl/m/movies@lemmy.world/microblog

Query Metrics

9 Database Queries
9 Different statements
53.08 ms Query time
0 Invalid entities
34 Cache hits
1 Cache misses
1 Cache puts

Grouped Statements

Show all queries

Time Count Info
29.34 ms
(55.27%)
1
(SELECT count(id), user_id FROM entry WHERE magazine_id = :magazineId GROUP BY user_id ORDER BY count DESC LIMIT 50)
        UNION
        (SELECT count(id), user_id FROM entry_comment WHERE magazine_id = :magazineId GROUP BY user_id ORDER BY count DESC LIMIT 50)
        UNION
        (SELECT count(id), user_id FROM post WHERE magazine_id = :magazineId GROUP BY user_id ORDER BY count DESC LIMIT 50)
        UNION
        (SELECT count(id), user_id FROM post_comment WHERE magazine_id = :magazineId GROUP BY user_id ORDER BY count DESC LIMIT 50)
        ORDER BY count DESC
Parameters:
[
  "magazineId" => 47
]
10.76 ms
(20.28%)
1
SELECT p0_.slug AS slug_0, p0_.body AS body_1, p0_.lang AS lang_2, p0_.comment_count AS comment_count_3, p0_.favourite_count AS favourite_count_4, p0_.score AS score_5, p0_.is_adult AS is_adult_6, p0_.sticky AS sticky_7, p0_.last_active AS last_active_8, p0_.ip AS ip_9, p0_.tags AS tags_10, p0_.mentions AS mentions_11, p0_.id AS id_12, p0_.body_ts AS body_ts_13, p0_.up_votes AS up_votes_14, p0_.down_votes AS down_votes_15, p0_.ranking AS ranking_16, p0_.visibility AS visibility_17, p0_.ap_id AS ap_id_18, p0_.edited_at AS edited_at_19, p0_.created_at AS created_at_20, p0_.user_id AS user_id_21, p0_.magazine_id AS magazine_id_22, p0_.image_id AS image_id_23 FROM post p0_ INNER JOIN magazine m1_ ON p0_.magazine_id = m1_.id INNER JOIN "user" u2_ ON p0_.user_id = u2_.id WHERE p0_.visibility = ? AND m1_.visibility = ? AND p0_.magazine_id = ? AND m1_.is_adult = ? AND p0_.is_adult = ? ORDER BY p0_.sticky DESC, p0_.ranking DESC, p0_.created_at DESC, p0_.id DESC LIMIT 15
Parameters:
[
  "visible"
  "visible"
  47
  0
  0
]
4.28 ms
(8.06%)
1
SELECT t0.choice AS choice_1, t0.id AS id_2, t0.created_at AS created_at_3, t0.user_id AS user_id_4, t0.author_id AS author_id_5, t0.post_id AS post_id_6 FROM post_vote t0 WHERE (t0.choice = ? AND t0.post_id = ?) ORDER BY t0.created_at DESC
Parameters:
[
  1
  363
]
3.13 ms
(5.90%)
1
SELECT u0_.email AS email_0, u0_.username AS username_1, u0_.roles AS roles_2, u0_.followers_count AS followers_count_3, u0_.homepage AS homepage_4, u0_.about AS about_5, u0_.last_active AS last_active_6, u0_.marked_for_deletion_at AS marked_for_deletion_at_7, u0_.fields AS fields_8, u0_.oauth_github_id AS oauth_github_id_9, u0_.oauth_google_id AS oauth_google_id_10, u0_.oauth_facebook_id AS oauth_facebook_id_11, u0_.oauth_keycloak_id AS oauth_keycloak_id_12, u0_.hide_adult AS hide_adult_13, u0_.show_subscribed_users AS show_subscribed_users_14, u0_.show_subscribed_magazines AS show_subscribed_magazines_15, u0_.show_subscribed_domains AS show_subscribed_domains_16, u0_.preferred_languages AS preferred_languages_17, u0_.featured_magazines AS featured_magazines_18, u0_.show_profile_subscriptions AS show_profile_subscriptions_19, u0_.show_profile_followings AS show_profile_followings_20, u0_.mark_new_comments AS mark_new_comments_21, u0_.notify_on_new_entry AS notify_on_new_entry_22, u0_.notify_on_new_entry_reply AS notify_on_new_entry_reply_23, u0_.notify_on_new_entry_comment_reply AS notify_on_new_entry_comment_reply_24, u0_.notify_on_new_post AS notify_on_new_post_25, u0_.notify_on_new_post_reply AS notify_on_new_post_reply_26, u0_.notify_on_new_post_comment_reply AS notify_on_new_post_comment_reply_27, u0_.add_mentions_entries AS add_mentions_entries_28, u0_.add_mentions_posts AS add_mentions_posts_29, u0_.is_banned AS is_banned_30, u0_.is_verified AS is_verified_31, u0_.is_deleted AS is_deleted_32, u0_.is_bot AS is_bot_33, u0_.spam_protection AS spam_protection_34, u0_.custom_css AS custom_css_35, u0_.ignore_magazines_custom_css AS ignore_magazines_custom_css_36, u0_.id AS id_37, u0_.password AS password_38, u0_.totp_secret AS totp_secret_39, u0_.totp_backup_codes AS totp_backup_codes_40, u0_.ap_id AS ap_id_41, u0_.ap_profile_id AS ap_profile_id_42, u0_.ap_public_url AS ap_public_url_43, u0_.ap_followers_url AS ap_followers_url_44, u0_.ap_inbox_url AS ap_inbox_url_45, u0_.ap_domain AS ap_domain_46, u0_.ap_preferred_username AS ap_preferred_username_47, u0_.ap_discoverable AS ap_discoverable_48, u0_.ap_manually_approves_followers AS ap_manually_approves_followers_49, u0_.private_key AS private_key_50, u0_.public_key AS public_key_51, u0_.ap_fetched_at AS ap_fetched_at_52, u0_.ap_deleted_at AS ap_deleted_at_53, u0_.ap_timeout_at AS ap_timeout_at_54, u0_.visibility AS visibility_55, u0_.created_at AS created_at_56, u0_.avatar_id AS avatar_id_57, u0_.cover_id AS cover_id_58 FROM "user" u0_ WHERE u0_.id IN (44728, 1329, 57420, 48871, 5083, 6511, 59803, 24753, 15102, 31991, 1065, 6911, 20607, 30611, 21219, 67058, 43703, 25317, 47629, 24858, 62681, 10325, 51479, 5192, 9659, 3557, 26476, 60425, 41342, 45241, 60424, 47324, 19907, 19404, 46029, 5997, 21011, 32364, 46739, 25135, 52598, 19842, 6227, 36778, 44457, 39829, 56750, 38011, 6013, 43740, 26302, 15563, 46065, 82574, 17601, 73661, 93208, 61582, 48796, 45354, 69355, 9799, 49106, 55256, 90017, 3827, 28212, 18039, 32668, 11369, 73514, 37202, 38796, 42225, 64249, 2383, 90194, 72344, 38359, 81228, 34368, 23877, 89687, 1052, 53463, 18580, 45488, 33902, 52600) AND u0_.is_banned = false AND u0_.ap_deleted_at IS NULL AND u0_.about IS NOT NULL AND u0_.avatar_id IS NOT NULL LIMIT 35
Parameters:
[]
1.46 ms
(2.75%)
1
SELECT count(p0_.id) AS sclr_0 FROM post p0_ INNER JOIN magazine m1_ ON p0_.magazine_id = m1_.id INNER JOIN "user" u2_ ON p0_.user_id = u2_.id WHERE p0_.visibility = ? AND m1_.visibility = ? AND p0_.magazine_id = ? AND m1_.is_adult = ? AND p0_.is_adult = ? ORDER BY sclr_0 ASC
Parameters:
[
  "visible"
  "visible"
  47
  0
  0
]
1.44 ms
(2.71%)
1
SELECT t0.is_owner AS is_owner_1, t0.is_confirmed AS is_confirmed_2, t0.id AS id_3, t0.created_at AS created_at_4, t0.user_id AS user_id_5, t0.magazine_id AS magazine_id_6 FROM moderator t0 WHERE (t0.is_owner = ? AND t0.magazine_id = ?)
Parameters:
[
  1
  47
]
1.18 ms
(2.23%)
1
SELECT COUNT(*) FROM magazine_log t0 WHERE t0.magazine_id = ? AND t0.log_type IN ('entry_deleted', 'entry_restored', 'entry_comment_deleted', 'entry_comment_restored', 'post_deleted', 'post_restored', 'post_comment_deleted', 'post_comment_restored', 'ban')
Parameters:
[
  47
]
1.06 ms
(1.99%)
1
SELECT t0.file_path AS file_path_1, t0.file_name AS file_name_2, t0.sha256 AS sha256_3, t0.width AS width_4, t0.height AS height_5, t0.blurhash AS blurhash_6, t0.alt_text AS alt_text_7, t0.source_url AS source_url_8, t0.id AS id_9 FROM image t0 WHERE t0.id = ?
Parameters:
[
  5688
]
0.43 ms
(0.82%)
1
SELECT t0.is_owner AS is_owner_1, t0.is_confirmed AS is_confirmed_2, t0.id AS id_3, t0.created_at AS created_at_4, t0.user_id AS user_id_5, t0.magazine_id AS magazine_id_6 FROM moderator t0 WHERE t0.magazine_id = ?
Parameters:
[
  47
]

Database Connections

Name Service
default doctrine.dbal.default_connection

Entity Managers

Name Service
default doctrine.orm.default_entity_manager

Second Level Cache

34 Hits
1 Misses
1 Puts

Number of cache hits

Region Hits
app_entity_magazine 4
app_entity_settings 16
app_entity_image 12
app_entity_user 2

Number of cache misses

Region Misses
app_entity_image 1

Number of cache puts

Region Puts
app_entity_image 1