3
12.52 ms
SELECT p . post_id , p . user_id , p . content_id , p . public_key , p . search_field , p . cover , p . type , p . sexual_orientation , p . orientation , p . quality , p . noindex , p . nofollow , p . contents_num , p . duration , p . likes , p . dislikes , p . views , p . vote_rating , p . params , p . published_at , IFNULL (`r` . `title` , `f` . `title` ) as `title` , IFNULL (`r` . `custom1` , `f` . `custom1` ) as `custom1` , IFNULL (`r` . `custom2` , `f` . `custom2` ) as `custom2` FROM post p LEFT JOIN post_translation f ON `p` . `post_id` = `f` . `post_id` AND `f` . `lang_id` = ? LEFT JOIN post_translation r ON `p` . `post_id` = `r` . `post_id` AND `r` . `lang_id` = ? WHERE p . post_id IN (? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )
Parameters :
[
1
2
550652
420151
771363
732945
550656
545900
826890
744345
764026
826888
546137
826891
678758
744364
644220
827500
650524
668706
729086
804059
776145
758328
801117
762304
456831
701182
577267
540119
732986
741787
794734
727796
742536
546133
644222
628700
554620
589702
719925
750094
792097
467919
549232
795084
718049
472663
413455
505562
477208
506635
781924
411909
462565
491281
427738
528531
456036
468017
739557
825864
460338
466135
521756
474394
494282
462101
]
SELECT
p . post_id ,
p . user_id ,
p . content_id ,
p . public_key ,
p . search_field ,
p . cover ,
p . type ,
p . sexual_orientation ,
p . orientation ,
p . quality ,
p . noindex ,
p . nofollow ,
p . contents_num ,
p . duration ,
p . likes ,
p . dislikes ,
p . views ,
p . vote_rating ,
p . params ,
p . published_at ,
IFNULL (`r` . `title` , `f` . `title` ) as `title` ,
IFNULL (`r` . `custom1` , `f` . `custom1` ) as `custom1` ,
IFNULL (`r` . `custom2` , `f` . `custom2` ) as `custom2`
FROM
post p
LEFT JOIN post_translation f ON `p` . `post_id` = `f` . `post_id`
AND `f` . `lang_id` = ?
LEFT JOIN post_translation r ON `p` . `post_id` = `r` . `post_id`
AND `r` . `lang_id` = ?
WHERE
p . post_id IN (
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ?
)
Copy
SELECT p . post_id , p . user_id , p . content_id , p . public_key , p . search_field , p . cover , p . type , p . sexual_orientation , p . orientation , p . quality , p . noindex , p . nofollow , p . contents_num , p . duration , p . likes , p . dislikes , p . views , p . vote_rating , p . params , p . published_at , IFNULL (`r` . `title` , `f` . `title` ) as `title` , IFNULL (`r` . `custom1` , `f` . `custom1` ) as `custom1` , IFNULL (`r` . `custom2` , `f` . `custom2` ) as `custom2` FROM post p LEFT JOIN post_translation f ON `p` . `post_id` = `f` . `post_id` AND `f` . `lang_id` = 1 LEFT JOIN post_translation r ON `p` . `post_id` = `r` . `post_id` AND `r` . `lang_id` = 2 WHERE p . post_id IN (550652 , 420151 , 771363 , 732945 , 550656 , 545900 , 826890 , 744345 , 764026 , 826888 , 546137 , 826891 , 678758 , 744364 , 644220 , 827500 , 650524 , 668706 , 729086 , 804059 , 776145 , 758328 , 801117 , 762304 , 456831 , 701182 , 577267 , 540119 , 732986 , 741787 , 794734 , 727796 , 742536 , 546133 , 644222 , 628700 , 554620 , 589702 , 719925 , 750094 , 792097 , 467919 , 549232 , 795084 , 718049 , 472663 , 413455 , 505562 , 477208 , 506635 , 781924 , 411909 , 462565 , 491281 , 427738 , 528531 , 456036 , 468017 , 739557 , 825864 , 460338 , 466135 , 521756 , 474394 , 494282 , 462101 );
Copy
4
2.83 ms
SELECT pht . post_id , pht . tag_id , t . slug , IFNULL (`r` . `name` , `f` . `name` ) as `name` FROM post_has_tag pht INNER JOIN tag t ON pht . tag_id = t . tag_id AND t . enabled = 1 LEFT JOIN tag_translation f ON t . tag_id = f . tag_id AND f . lang_id = ? LEFT JOIN tag_translation r ON `t` . `tag_id` = `r` . `tag_id` AND `r` . `lang_id` = ? WHERE pht . post_id IN (? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )
Parameters :
[
1
2
411909
413455
420151
427738
456036
456831
460338
462101
462565
466135
467919
468017
472663
474394
477208
491281
494282
505562
506635
521756
528531
540119
545900
546133
546137
549232
550652
550656
554620
577267
589702
628700
644220
644222
650524
668706
678758
701182
718049
719925
727796
729086
732945
732986
739557
741787
742536
744345
744364
750094
758328
762304
764026
771363
776145
781924
792097
794734
795084
801117
804059
825864
826888
826890
826891
827500
]
SELECT
pht . post_id ,
pht . tag_id ,
t . slug ,
IFNULL (`r` . `name` , `f` . `name` ) as `name`
FROM
post_has_tag pht
INNER JOIN tag t ON pht . tag_id = t . tag_id
AND t . enabled = 1
LEFT JOIN tag_translation f ON t . tag_id = f . tag_id
AND f . lang_id = ?
LEFT JOIN tag_translation r ON `t` . `tag_id` = `r` . `tag_id`
AND `r` . `lang_id` = ?
WHERE
pht . post_id IN (
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ?
)
Copy
SELECT pht . post_id , pht . tag_id , t . slug , IFNULL (`r` . `name` , `f` . `name` ) as `name` FROM post_has_tag pht INNER JOIN tag t ON pht . tag_id = t . tag_id AND t . enabled = 1 LEFT JOIN tag_translation f ON t . tag_id = f . tag_id AND f . lang_id = 1 LEFT JOIN tag_translation r ON `t` . `tag_id` = `r` . `tag_id` AND `r` . `lang_id` = 2 WHERE pht . post_id IN (411909 , 413455 , 420151 , 427738 , 456036 , 456831 , 460338 , 462101 , 462565 , 466135 , 467919 , 468017 , 472663 , 474394 , 477208 , 491281 , 494282 , 505562 , 506635 , 521756 , 528531 , 540119 , 545900 , 546133 , 546137 , 549232 , 550652 , 550656 , 554620 , 577267 , 589702 , 628700 , 644220 , 644222 , 650524 , 668706 , 678758 , 701182 , 718049 , 719925 , 727796 , 729086 , 732945 , 732986 , 739557 , 741787 , 742536 , 744345 , 744364 , 750094 , 758328 , 762304 , 764026 , 771363 , 776145 , 781924 , 792097 , 794734 , 795084 , 801117 , 804059 , 825864 , 826888 , 826890 , 826891 , 827500 );
Copy
5
102.24 ms
SELECT phc . post_id , phc . category_id , c . slug , IFNULL (`r` . `name` , `f` . `name` ) as `name` FROM post_has_category phc INNER JOIN category c ON phc . category_id = c . category_id AND c . enabled = 1 LEFT JOIN category_translation f ON c . category_id = f . category_id AND f . lang_id = ? LEFT JOIN category_translation r ON `c` . `category_id` = `r` . `category_id` AND `r` . `lang_id` = ? WHERE phc . post_id IN (? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )
Parameters :
[
1
2
411909
413455
420151
427738
456036
456831
460338
462101
462565
466135
467919
468017
472663
474394
477208
491281
494282
505562
506635
521756
528531
540119
545900
546133
546137
549232
550652
550656
554620
577267
589702
628700
644220
644222
650524
668706
678758
701182
718049
719925
727796
729086
732945
732986
739557
741787
742536
744345
744364
750094
758328
762304
764026
771363
776145
781924
792097
794734
795084
801117
804059
825864
826888
826890
826891
827500
]
SELECT
phc . post_id ,
phc . category_id ,
c . slug ,
IFNULL (`r` . `name` , `f` . `name` ) as `name`
FROM
post_has_category phc
INNER JOIN category c ON phc . category_id = c . category_id
AND c . enabled = 1
LEFT JOIN category_translation f ON c . category_id = f . category_id
AND f . lang_id = ?
LEFT JOIN category_translation r ON `c` . `category_id` = `r` . `category_id`
AND `r` . `lang_id` = ?
WHERE
phc . post_id IN (
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ?
)
Copy
SELECT phc . post_id , phc . category_id , c . slug , IFNULL (`r` . `name` , `f` . `name` ) as `name` FROM post_has_category phc INNER JOIN category c ON phc . category_id = c . category_id AND c . enabled = 1 LEFT JOIN category_translation f ON c . category_id = f . category_id AND f . lang_id = 1 LEFT JOIN category_translation r ON `c` . `category_id` = `r` . `category_id` AND `r` . `lang_id` = 2 WHERE phc . post_id IN (411909 , 413455 , 420151 , 427738 , 456036 , 456831 , 460338 , 462101 , 462565 , 466135 , 467919 , 468017 , 472663 , 474394 , 477208 , 491281 , 494282 , 505562 , 506635 , 521756 , 528531 , 540119 , 545900 , 546133 , 546137 , 549232 , 550652 , 550656 , 554620 , 577267 , 589702 , 628700 , 644220 , 644222 , 650524 , 668706 , 678758 , 701182 , 718049 , 719925 , 727796 , 729086 , 732945 , 732986 , 739557 , 741787 , 742536 , 744345 , 744364 , 750094 , 758328 , 762304 , 764026 , 771363 , 776145 , 781924 , 792097 , 794734 , 795084 , 801117 , 804059 , 825864 , 826888 , 826890 , 826891 , 827500 );
Copy