| 1 |
0.54 ms |
SELECT t0.id AS id_1, t0.video_id AS video_id_2, t0.title AS title_3, t0.description AS description_4, t0.duration AS duration_5, t0.playlist_path AS playlist_path_6, t0.thumbnail_path AS thumbnail_path_7, t0.preview_path AS preview_path_8, t0.is_active AS is_active_9, t0.price AS price_10, t0.pricing_type AS pricing_type_11, t0.created_at AS created_at_12, t0.updated_at AS updated_at_13, t0.sort_order AS sort_order_14, t0.views_count AS views_count_15, t0.likes_count AS likes_count_16, t0.purchases_count AS purchases_count_17, t0.comments_count AS comments_count_18, t0.linked_photo_gallery_id AS linked_photo_gallery_id_19 FROM video t0 WHERE t0.id = ?
SELECT t0.id AS id_1, t0.video_id AS video_id_2, t0.title AS title_3, t0.description AS description_4, t0.duration AS duration_5, t0.playlist_path AS playlist_path_6, t0.thumbnail_path AS thumbnail_path_7, t0.preview_path AS preview_path_8, t0.is_active AS is_active_9, t0.price AS price_10, t0.pricing_type AS pricing_type_11, t0.created_at AS created_at_12, t0.updated_at AS updated_at_13, t0.sort_order AS sort_order_14, t0.views_count AS views_count_15, t0.likes_count AS likes_count_16, t0.purchases_count AS purchases_count_17, t0.comments_count AS comments_count_18, t0.linked_photo_gallery_id AS linked_photo_gallery_id_19 FROM video t0 WHERE t0.id = '12';
|
| 4 |
1.29 ms |
SELECT v0_.id AS id_0, v0_.video_id AS video_id_1, v0_.title AS title_2, v0_.description AS description_3, v0_.duration AS duration_4, v0_.playlist_path AS playlist_path_5, v0_.thumbnail_path AS thumbnail_path_6, v0_.preview_path AS preview_path_7, v0_.is_active AS is_active_8, v0_.price AS price_9, v0_.pricing_type AS pricing_type_10, v0_.created_at AS created_at_11, v0_.updated_at AS updated_at_12, v0_.sort_order AS sort_order_13, v0_.views_count AS views_count_14, v0_.likes_count AS likes_count_15, v0_.purchases_count AS purchases_count_16, v0_.comments_count AS comments_count_17, v1_.id AS id_18, v1_.locale AS locale_19, v1_.title AS title_20, v1_.description AS description_21, v1_.created_at AS created_at_22, v1_.updated_at AS updated_at_23, c2_.id AS id_24, c2_.title AS title_25, c2_.image AS image_26, c2_.is_active AS is_active_27, c2_.created_at AS created_at_28, c2_.updated_at AS updated_at_29, c2_.sort_order AS sort_order_30, v0_.linked_photo_gallery_id AS linked_photo_gallery_id_31, v1_.video_id AS video_id_32 FROM video v0_ LEFT JOIN video_translation v1_ ON v0_.id = v1_.video_id AND (v1_.locale = ?) LEFT JOIN video_categories v3_ ON v0_.id = v3_.video_id LEFT JOIN category c2_ ON c2_.id = v3_.category_id INNER JOIN video_categories v5_ ON v0_.id = v5_.video_id INNER JOIN category c4_ ON c4_.id = v5_.category_id WHERE c4_.id IN (?) AND v0_.id <> ? AND v0_.is_active = 1 ORDER BY v0_.views_count DESC LIMIT 6
Parameters: [
"fr"
3
12
]
SELECT v0_.id AS id_0, v0_.video_id AS video_id_1, v0_.title AS title_2, v0_.description AS description_3, v0_.duration AS duration_4, v0_.playlist_path AS playlist_path_5, v0_.thumbnail_path AS thumbnail_path_6, v0_.preview_path AS preview_path_7, v0_.is_active AS is_active_8, v0_.price AS price_9, v0_.pricing_type AS pricing_type_10, v0_.created_at AS created_at_11, v0_.updated_at AS updated_at_12, v0_.sort_order AS sort_order_13, v0_.views_count AS views_count_14, v0_.likes_count AS likes_count_15, v0_.purchases_count AS purchases_count_16, v0_.comments_count AS comments_count_17, v1_.id AS id_18, v1_.locale AS locale_19, v1_.title AS title_20, v1_.description AS description_21, v1_.created_at AS created_at_22, v1_.updated_at AS updated_at_23, c2_.id AS id_24, c2_.title AS title_25, c2_.image AS image_26, c2_.is_active AS is_active_27, c2_.created_at AS created_at_28, c2_.updated_at AS updated_at_29, c2_.sort_order AS sort_order_30, v0_.linked_photo_gallery_id AS linked_photo_gallery_id_31, v1_.video_id AS video_id_32 FROM video v0_ LEFT JOIN video_translation v1_ ON v0_.id = v1_.video_id AND (v1_.locale = 'fr') LEFT JOIN video_categories v3_ ON v0_.id = v3_.video_id LEFT JOIN category c2_ ON c2_.id = v3_.category_id INNER JOIN video_categories v5_ ON v0_.id = v5_.video_id INNER JOIN category c4_ ON c4_.id = v5_.category_id WHERE c4_.id IN (3) AND v0_.id <> 12 AND v0_.is_active = 1 ORDER BY v0_.views_count DESC LIMIT 6;
|
| 6 |
0.28 ms |
SELECT t0.id AS id_1, t0.commentable_type AS commentable_type_2, t0.commentable_id AS commentable_id_3, t0.content AS content_4, t0.is_active AS is_active_5, t0.is_moderated AS is_moderated_6, t0.created_at AS created_at_7, t0.updated_at AS updated_at_8, t0.likes_count AS likes_count_9, t0.user_id AS user_id_10, t0.parent_id AS parent_id_11 FROM comments t0 WHERE t0.commentable_type = ? AND t0.commentable_id = ? AND t0.is_active = ? ORDER BY t0.created_at DESC
Parameters: [
"video"
12
1
]
SELECT t0.id AS id_1, t0.commentable_type AS commentable_type_2, t0.commentable_id AS commentable_id_3, t0.content AS content_4, t0.is_active AS is_active_5, t0.is_moderated AS is_moderated_6, t0.created_at AS created_at_7, t0.updated_at AS updated_at_8, t0.likes_count AS likes_count_9, t0.user_id AS user_id_10, t0.parent_id AS parent_id_11 FROM comments t0 WHERE t0.commentable_type = 'video' AND t0.commentable_id = 12 AND t0.is_active = 1 ORDER BY t0.created_at DESC;
|