3
7.91 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
617547
774319
741933
777797
797862
709467
609570
775876
748317
742807
735640
612062
760463
760252
716879
799582
773528
774343
580345
540369
665455
659658
592415
792831
810769
418018
489769
533352
552967
649935
707333
663449
793471
733877
730409
810668
544506
537776
684560
775928
755652
733838
748253
580973
489780
536289
537909
672709
544841
533350
533926
534627
631616
520037
582531
640805
606571
628366
424398
702163
596462
451866
528641
596933
]
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 (617547 , 774319 , 741933 , 777797 , 797862 , 709467 , 609570 , 775876 , 748317 , 742807 , 735640 , 612062 , 760463 , 760252 , 716879 , 799582 , 773528 , 774343 , 580345 , 540369 , 665455 , 659658 , 592415 , 792831 , 810769 , 418018 , 489769 , 533352 , 552967 , 649935 , 707333 , 663449 , 793471 , 733877 , 730409 , 810668 , 544506 , 537776 , 684560 , 775928 , 755652 , 733838 , 748253 , 580973 , 489780 , 536289 , 537909 , 672709 , 544841 , 533350 , 533926 , 534627 , 631616 , 520037 , 582531 , 640805 , 606571 , 628366 , 424398 , 702163 , 596462 , 451866 , 528641 , 596933 );
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
418018
424398
451866
489769
489780
520037
528641
533350
533352
533926
534627
536289
537776
537909
540369
544506
544841
552967
580345
580973
582531
592415
596462
596933
606571
609570
612062
628366
631616
640805
649935
659658
663449
665455
672709
684560
702163
707333
709467
716879
730409
733838
733877
735640
741933
742807
748253
748317
755652
760252
760463
773528
774319
774343
775876
775928
777797
792831
793471
797862
799582
810668
810769
]
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 (418018 , 424398 , 451866 , 489769 , 489780 , 520037 , 528641 , 533350 , 533352 , 533926 , 534627 , 536289 , 537776 , 537909 , 540369 , 544506 , 544841 , 552967 , 580345 , 580973 , 582531 , 592415 , 596462 , 596933 , 606571 , 609570 , 612062 , 628366 , 631616 , 640805 , 649935 , 659658 , 663449 , 665455 , 672709 , 684560 , 702163 , 707333 , 709467 , 716879 , 730409 , 733838 , 733877 , 735640 , 741933 , 742807 , 748253 , 748317 , 755652 , 760252 , 760463 , 773528 , 774319 , 774343 , 775876 , 775928 , 777797 , 792831 , 793471 , 797862 , 799582 , 810668 , 810769 );
Copy
5
112.94 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
418018
424398
451866
489769
489780
520037
528641
533350
533352
533926
534627
536289
537776
537909
540369
544506
544841
552967
580345
580973
582531
592415
596462
596933
606571
609570
612062
628366
631616
640805
649935
659658
663449
665455
672709
684560
702163
707333
709467
716879
730409
733838
733877
735640
741933
742807
748253
748317
755652
760252
760463
773528
774319
774343
775876
775928
777797
792831
793471
797862
799582
810668
810769
]
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 (418018 , 424398 , 451866 , 489769 , 489780 , 520037 , 528641 , 533350 , 533352 , 533926 , 534627 , 536289 , 537776 , 537909 , 540369 , 544506 , 544841 , 552967 , 580345 , 580973 , 582531 , 592415 , 596462 , 596933 , 606571 , 609570 , 612062 , 628366 , 631616 , 640805 , 649935 , 659658 , 663449 , 665455 , 672709 , 684560 , 702163 , 707333 , 709467 , 716879 , 730409 , 733838 , 733877 , 735640 , 741933 , 742807 , 748253 , 748317 , 755652 , 760252 , 760463 , 773528 , 774319 , 774343 , 775876 , 775928 , 777797 , 792831 , 793471 , 797862 , 799582 , 810668 , 810769 );
Copy