4
10.92 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
684346
570773
681823
601090
776146
641422
586068
812419
775943
629300
754214
759657
805921
772487
635351
702343
583574
646035
774734
576896
643080
769394
726290
715972
635227
620741
599971
501533
678486
549314
584442
493231
814937
531261
575139
653447
696203
478540
532772
582323
685714
719326
665749
821615
591637
822627
822634
628950
600257
758429
761172
446860
696062
732953
606570
803176
432017
695678
599940
582396
606058
590762
606060
397251
385457
602618
448060
816065
477759
576341
467843
647905
557676
639760
]
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 (684346 , 570773 , 681823 , 601090 , 776146 , 641422 , 586068 , 812419 , 775943 , 629300 , 754214 , 759657 , 805921 , 772487 , 635351 , 702343 , 583574 , 646035 , 774734 , 576896 , 643080 , 769394 , 726290 , 715972 , 635227 , 620741 , 599971 , 501533 , 678486 , 549314 , 584442 , 493231 , 814937 , 531261 , 575139 , 653447 , 696203 , 478540 , 532772 , 582323 , 685714 , 719326 , 665749 , 821615 , 591637 , 822627 , 822634 , 628950 , 600257 , 758429 , 761172 , 446860 , 696062 , 732953 , 606570 , 803176 , 432017 , 695678 , 599940 , 582396 , 606058 , 590762 , 606060 , 397251 , 385457 , 602618 , 448060 , 816065 , 477759 , 576341 , 467843 , 647905 , 557676 , 639760 );
Copy
5
2.80 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
385457
397251
432017
446860
448060
467843
477759
478540
493231
501533
531261
532772
549314
557676
570773
575139
576341
576896
582323
582396
583574
584442
586068
590762
591637
599940
599971
600257
601090
602618
606058
606060
606570
620741
628950
629300
635227
635351
639760
641422
643080
646035
647905
653447
665749
678486
681823
684346
685714
695678
696062
696203
702343
715972
719326
726290
732953
754214
758429
759657
761172
769394
772487
774734
775943
776146
803176
805921
812419
814937
816065
821615
822627
822634
]
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 (385457 , 397251 , 432017 , 446860 , 448060 , 467843 , 477759 , 478540 , 493231 , 501533 , 531261 , 532772 , 549314 , 557676 , 570773 , 575139 , 576341 , 576896 , 582323 , 582396 , 583574 , 584442 , 586068 , 590762 , 591637 , 599940 , 599971 , 600257 , 601090 , 602618 , 606058 , 606060 , 606570 , 620741 , 628950 , 629300 , 635227 , 635351 , 639760 , 641422 , 643080 , 646035 , 647905 , 653447 , 665749 , 678486 , 681823 , 684346 , 685714 , 695678 , 696062 , 696203 , 702343 , 715972 , 719326 , 726290 , 732953 , 754214 , 758429 , 759657 , 761172 , 769394 , 772487 , 774734 , 775943 , 776146 , 803176 , 805921 , 812419 , 814937 , 816065 , 821615 , 822627 , 822634 );
Copy
6
80.34 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
385457
397251
432017
446860
448060
467843
477759
478540
493231
501533
531261
532772
549314
557676
570773
575139
576341
576896
582323
582396
583574
584442
586068
590762
591637
599940
599971
600257
601090
602618
606058
606060
606570
620741
628950
629300
635227
635351
639760
641422
643080
646035
647905
653447
665749
678486
681823
684346
685714
695678
696062
696203
702343
715972
719326
726290
732953
754214
758429
759657
761172
769394
772487
774734
775943
776146
803176
805921
812419
814937
816065
821615
822627
822634
]
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 (385457 , 397251 , 432017 , 446860 , 448060 , 467843 , 477759 , 478540 , 493231 , 501533 , 531261 , 532772 , 549314 , 557676 , 570773 , 575139 , 576341 , 576896 , 582323 , 582396 , 583574 , 584442 , 586068 , 590762 , 591637 , 599940 , 599971 , 600257 , 601090 , 602618 , 606058 , 606060 , 606570 , 620741 , 628950 , 629300 , 635227 , 635351 , 639760 , 641422 , 643080 , 646035 , 647905 , 653447 , 665749 , 678486 , 681823 , 684346 , 685714 , 695678 , 696062 , 696203 , 702343 , 715972 , 719326 , 726290 , 732953 , 754214 , 758429 , 759657 , 761172 , 769394 , 772487 , 774734 , 775943 , 776146 , 803176 , 805921 , 812419 , 814937 , 816065 , 821615 , 822627 , 822634 );
Copy