3
12.31 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
648634
595945
725409
445324
813067
512042
775928
402092
447262
444798
811466
542730
675107
426085
439892
426033
484487
564162
500798
496856
603623
447125
675926
595769
548903
587483
634811
446977
556664
428758
599882
627722
506081
565243
491458
452626
421566
439675
415361
512749
503546
782516
472252
536689
559389
634561
490996
650660
633780
642016
642706
624930
530761
598887
532747
556046
635171
603971
696606
543659
559392
599967
545480
]
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 (648634 , 595945 , 725409 , 445324 , 813067 , 512042 , 775928 , 402092 , 447262 , 444798 , 811466 , 542730 , 675107 , 426085 , 439892 , 426033 , 484487 , 564162 , 500798 , 496856 , 603623 , 447125 , 675926 , 595769 , 548903 , 587483 , 634811 , 446977 , 556664 , 428758 , 599882 , 627722 , 506081 , 565243 , 491458 , 452626 , 421566 , 439675 , 415361 , 512749 , 503546 , 782516 , 472252 , 536689 , 559389 , 634561 , 490996 , 650660 , 633780 , 642016 , 642706 , 624930 , 530761 , 598887 , 532747 , 556046 , 635171 , 603971 , 696606 , 543659 , 559392 , 599967 , 545480 );
Copy
4
3.79 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
402092
415361
421566
426033
426085
428758
439675
439892
444798
445324
446977
447125
447262
452626
472252
484487
490996
491458
496856
500798
503546
506081
512042
512749
530761
532747
536689
542730
543659
545480
548903
556046
556664
559389
559392
564162
565243
587483
595769
595945
598887
599882
599967
603623
603971
624930
627722
633780
634561
634811
635171
642016
642706
648634
650660
675107
675926
696606
725409
775928
782516
811466
813067
]
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 (402092 , 415361 , 421566 , 426033 , 426085 , 428758 , 439675 , 439892 , 444798 , 445324 , 446977 , 447125 , 447262 , 452626 , 472252 , 484487 , 490996 , 491458 , 496856 , 500798 , 503546 , 506081 , 512042 , 512749 , 530761 , 532747 , 536689 , 542730 , 543659 , 545480 , 548903 , 556046 , 556664 , 559389 , 559392 , 564162 , 565243 , 587483 , 595769 , 595945 , 598887 , 599882 , 599967 , 603623 , 603971 , 624930 , 627722 , 633780 , 634561 , 634811 , 635171 , 642016 , 642706 , 648634 , 650660 , 675107 , 675926 , 696606 , 725409 , 775928 , 782516 , 811466 , 813067 );
Copy
5
114.81 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
402092
415361
421566
426033
426085
428758
439675
439892
444798
445324
446977
447125
447262
452626
472252
484487
490996
491458
496856
500798
503546
506081
512042
512749
530761
532747
536689
542730
543659
545480
548903
556046
556664
559389
559392
564162
565243
587483
595769
595945
598887
599882
599967
603623
603971
624930
627722
633780
634561
634811
635171
642016
642706
648634
650660
675107
675926
696606
725409
775928
782516
811466
813067
]
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 (402092 , 415361 , 421566 , 426033 , 426085 , 428758 , 439675 , 439892 , 444798 , 445324 , 446977 , 447125 , 447262 , 452626 , 472252 , 484487 , 490996 , 491458 , 496856 , 500798 , 503546 , 506081 , 512042 , 512749 , 530761 , 532747 , 536689 , 542730 , 543659 , 545480 , 548903 , 556046 , 556664 , 559389 , 559392 , 564162 , 565243 , 587483 , 595769 , 595945 , 598887 , 599882 , 599967 , 603623 , 603971 , 624930 , 627722 , 633780 , 634561 , 634811 , 635171 , 642016 , 642706 , 648634 , 650660 , 675107 , 675926 , 696606 , 725409 , 775928 , 782516 , 811466 , 813067 );
Copy