3
11.44 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
570392
587180
599810
589987
798824
807862
510125
415619
469722
520254
476442
548683
573993
584623
551516
701231
673415
689305
600728
609273
725089
736553
425921
462890
462888
476037
538222
522038
442345
488010
459605
537287
505073
491682
491901
543400
551876
598861
429267
432872
462699
469651
417024
425957
492707
477899
492519
689610
612478
615182
464187
472266
525663
554649
673330
575715
522892
463519
478565
673333
484227
513506
695122
599827
]
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 (570392 , 587180 , 599810 , 589987 , 798824 , 807862 , 510125 , 415619 , 469722 , 520254 , 476442 , 548683 , 573993 , 584623 , 551516 , 701231 , 673415 , 689305 , 600728 , 609273 , 725089 , 736553 , 425921 , 462890 , 462888 , 476037 , 538222 , 522038 , 442345 , 488010 , 459605 , 537287 , 505073 , 491682 , 491901 , 543400 , 551876 , 598861 , 429267 , 432872 , 462699 , 469651 , 417024 , 425957 , 492707 , 477899 , 492519 , 689610 , 612478 , 615182 , 464187 , 472266 , 525663 , 554649 , 673330 , 575715 , 522892 , 463519 , 478565 , 673333 , 484227 , 513506 , 695122 , 599827 );
Copy
4
3.58 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
415619
417024
425921
425957
429267
432872
442345
459605
462699
462888
462890
463519
464187
469651
469722
472266
476037
476442
477899
478565
484227
488010
491682
491901
492519
492707
505073
510125
513506
520254
522038
522892
525663
537287
538222
543400
548683
551516
551876
554649
570392
573993
575715
584623
587180
589987
598861
599810
599827
600728
609273
612478
615182
673330
673333
673415
689305
689610
695122
701231
725089
736553
798824
807862
]
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 (415619 , 417024 , 425921 , 425957 , 429267 , 432872 , 442345 , 459605 , 462699 , 462888 , 462890 , 463519 , 464187 , 469651 , 469722 , 472266 , 476037 , 476442 , 477899 , 478565 , 484227 , 488010 , 491682 , 491901 , 492519 , 492707 , 505073 , 510125 , 513506 , 520254 , 522038 , 522892 , 525663 , 537287 , 538222 , 543400 , 548683 , 551516 , 551876 , 554649 , 570392 , 573993 , 575715 , 584623 , 587180 , 589987 , 598861 , 599810 , 599827 , 600728 , 609273 , 612478 , 615182 , 673330 , 673333 , 673415 , 689305 , 689610 , 695122 , 701231 , 725089 , 736553 , 798824 , 807862 );
Copy
5
66.26 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
415619
417024
425921
425957
429267
432872
442345
459605
462699
462888
462890
463519
464187
469651
469722
472266
476037
476442
477899
478565
484227
488010
491682
491901
492519
492707
505073
510125
513506
520254
522038
522892
525663
537287
538222
543400
548683
551516
551876
554649
570392
573993
575715
584623
587180
589987
598861
599810
599827
600728
609273
612478
615182
673330
673333
673415
689305
689610
695122
701231
725089
736553
798824
807862
]
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 (415619 , 417024 , 425921 , 425957 , 429267 , 432872 , 442345 , 459605 , 462699 , 462888 , 462890 , 463519 , 464187 , 469651 , 469722 , 472266 , 476037 , 476442 , 477899 , 478565 , 484227 , 488010 , 491682 , 491901 , 492519 , 492707 , 505073 , 510125 , 513506 , 520254 , 522038 , 522892 , 525663 , 537287 , 538222 , 543400 , 548683 , 551516 , 551876 , 554649 , 570392 , 573993 , 575715 , 584623 , 587180 , 589987 , 598861 , 599810 , 599827 , 600728 , 609273 , 612478 , 615182 , 673330 , 673333 , 673415 , 689305 , 689610 , 695122 , 701231 , 725089 , 736553 , 798824 , 807862 );
Copy