3
7.09 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
591925
781084
535905
556174
584127
456130
597100
451827
740481
646214
679041
500907
568914
519615
801638
595869
515763
628823
531521
654347
644175
585301
775892
529146
559373
649249
595828
566273
678015
494688
519972
564218
542085
577422
601939
611269
634224
467185
569117
621648
594151
501682
560155
558238
679373
560206
598871
624778
513096
508179
604386
564122
616896
626367
503935
614057
672469
507296
571674
586616
528695
527198
602569
604960
649960
674077
674982
565153
]
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 (591925 , 781084 , 535905 , 556174 , 584127 , 456130 , 597100 , 451827 , 740481 , 646214 , 679041 , 500907 , 568914 , 519615 , 801638 , 595869 , 515763 , 628823 , 531521 , 654347 , 644175 , 585301 , 775892 , 529146 , 559373 , 649249 , 595828 , 566273 , 678015 , 494688 , 519972 , 564218 , 542085 , 577422 , 601939 , 611269 , 634224 , 467185 , 569117 , 621648 , 594151 , 501682 , 560155 , 558238 , 679373 , 560206 , 598871 , 624778 , 513096 , 508179 , 604386 , 564122 , 616896 , 626367 , 503935 , 614057 , 672469 , 507296 , 571674 , 586616 , 528695 , 527198 , 602569 , 604960 , 649960 , 674077 , 674982 , 565153 );
Copy
4
2.45 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
451827
456130
467185
494688
500907
501682
503935
507296
508179
513096
515763
519615
519972
527198
528695
529146
531521
535905
542085
556174
558238
559373
560155
560206
564122
564218
565153
566273
568914
569117
571674
577422
584127
585301
586616
591925
594151
595828
595869
597100
598871
601939
602569
604386
604960
611269
614057
616896
621648
624778
626367
628823
634224
644175
646214
649249
649960
654347
672469
674077
674982
678015
679041
679373
740481
775892
781084
801638
]
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 (451827 , 456130 , 467185 , 494688 , 500907 , 501682 , 503935 , 507296 , 508179 , 513096 , 515763 , 519615 , 519972 , 527198 , 528695 , 529146 , 531521 , 535905 , 542085 , 556174 , 558238 , 559373 , 560155 , 560206 , 564122 , 564218 , 565153 , 566273 , 568914 , 569117 , 571674 , 577422 , 584127 , 585301 , 586616 , 591925 , 594151 , 595828 , 595869 , 597100 , 598871 , 601939 , 602569 , 604386 , 604960 , 611269 , 614057 , 616896 , 621648 , 624778 , 626367 , 628823 , 634224 , 644175 , 646214 , 649249 , 649960 , 654347 , 672469 , 674077 , 674982 , 678015 , 679041 , 679373 , 740481 , 775892 , 781084 , 801638 );
Copy
5
135.71 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
451827
456130
467185
494688
500907
501682
503935
507296
508179
513096
515763
519615
519972
527198
528695
529146
531521
535905
542085
556174
558238
559373
560155
560206
564122
564218
565153
566273
568914
569117
571674
577422
584127
585301
586616
591925
594151
595828
595869
597100
598871
601939
602569
604386
604960
611269
614057
616896
621648
624778
626367
628823
634224
644175
646214
649249
649960
654347
672469
674077
674982
678015
679041
679373
740481
775892
781084
801638
]
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 (451827 , 456130 , 467185 , 494688 , 500907 , 501682 , 503935 , 507296 , 508179 , 513096 , 515763 , 519615 , 519972 , 527198 , 528695 , 529146 , 531521 , 535905 , 542085 , 556174 , 558238 , 559373 , 560155 , 560206 , 564122 , 564218 , 565153 , 566273 , 568914 , 569117 , 571674 , 577422 , 584127 , 585301 , 586616 , 591925 , 594151 , 595828 , 595869 , 597100 , 598871 , 601939 , 602569 , 604386 , 604960 , 611269 , 614057 , 616896 , 621648 , 624778 , 626367 , 628823 , 634224 , 644175 , 646214 , 649249 , 649960 , 654347 , 672469 , 674077 , 674982 , 678015 , 679041 , 679373 , 740481 , 775892 , 781084 , 801638 );
Copy