3
8.42 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
432384
781484
736284
492501
559258
689216
396421
767781
710218
787232
798937
790251
734061
561616
791612
783024
825641
667447
423529
731429
793981
503011
458127
584956
813297
538521
590577
826374
571376
571364
615471
731441
742767
777817
429924
471306
553632
587963
640905
470828
461365
596394
791570
763265
725760
553247
523707
521683
471517
79898
778837
589391
412429
457069
658767
608092
702488
531935
485872
488891
422170
410864
498825
619538
463741
638298
520262
]
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 (432384 , 781484 , 736284 , 492501 , 559258 , 689216 , 396421 , 767781 , 710218 , 787232 , 798937 , 790251 , 734061 , 561616 , 791612 , 783024 , 825641 , 667447 , 423529 , 731429 , 793981 , 503011 , 458127 , 584956 , 813297 , 538521 , 590577 , 826374 , 571376 , 571364 , 615471 , 731441 , 742767 , 777817 , 429924 , 471306 , 553632 , 587963 , 640905 , 470828 , 461365 , 596394 , 791570 , 763265 , 725760 , 553247 , 523707 , 521683 , 471517 , 79898 , 778837 , 589391 , 412429 , 457069 , 658767 , 608092 , 702488 , 531935 , 485872 , 488891 , 422170 , 410864 , 498825 , 619538 , 463741 , 638298 , 520262 );
Copy
4
2.54 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
79898
396421
410864
412429
422170
423529
429924
432384
457069
458127
461365
463741
470828
471306
471517
485872
488891
492501
498825
503011
520262
521683
523707
531935
538521
553247
553632
559258
561616
571364
571376
584956
587963
589391
590577
596394
608092
615471
619538
638298
640905
658767
667447
689216
702488
710218
725760
731429
731441
734061
736284
742767
763265
767781
777817
778837
781484
783024
787232
790251
791570
791612
793981
798937
813297
825641
826374
]
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 (79898 , 396421 , 410864 , 412429 , 422170 , 423529 , 429924 , 432384 , 457069 , 458127 , 461365 , 463741 , 470828 , 471306 , 471517 , 485872 , 488891 , 492501 , 498825 , 503011 , 520262 , 521683 , 523707 , 531935 , 538521 , 553247 , 553632 , 559258 , 561616 , 571364 , 571376 , 584956 , 587963 , 589391 , 590577 , 596394 , 608092 , 615471 , 619538 , 638298 , 640905 , 658767 , 667447 , 689216 , 702488 , 710218 , 725760 , 731429 , 731441 , 734061 , 736284 , 742767 , 763265 , 767781 , 777817 , 778837 , 781484 , 783024 , 787232 , 790251 , 791570 , 791612 , 793981 , 798937 , 813297 , 825641 , 826374 );
Copy
5
72.43 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
79898
396421
410864
412429
422170
423529
429924
432384
457069
458127
461365
463741
470828
471306
471517
485872
488891
492501
498825
503011
520262
521683
523707
531935
538521
553247
553632
559258
561616
571364
571376
584956
587963
589391
590577
596394
608092
615471
619538
638298
640905
658767
667447
689216
702488
710218
725760
731429
731441
734061
736284
742767
763265
767781
777817
778837
781484
783024
787232
790251
791570
791612
793981
798937
813297
825641
826374
]
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 (79898 , 396421 , 410864 , 412429 , 422170 , 423529 , 429924 , 432384 , 457069 , 458127 , 461365 , 463741 , 470828 , 471306 , 471517 , 485872 , 488891 , 492501 , 498825 , 503011 , 520262 , 521683 , 523707 , 531935 , 538521 , 553247 , 553632 , 559258 , 561616 , 571364 , 571376 , 584956 , 587963 , 589391 , 590577 , 596394 , 608092 , 615471 , 619538 , 638298 , 640905 , 658767 , 667447 , 689216 , 702488 , 710218 , 725760 , 731429 , 731441 , 734061 , 736284 , 742767 , 763265 , 767781 , 777817 , 778837 , 781484 , 783024 , 787232 , 790251 , 791570 , 791612 , 793981 , 798937 , 813297 , 825641 , 826374 );
Copy