3
13.29 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
523347
715286
720550
790636
791835
639120
681485
522749
791795
742785
591901
763775
702911
802329
619017
748028
766260
801770
427233
599464
795366
734809
666041
803363
773885
714418
714707
723166
540588
506473
627759
782539
619648
723889
575583
418161
431731
495000
555580
495525
412141
724448
523791
449459
525855
451225
594536
418134
583866
621375
458985
456666
715282
610958
583609
528474
533390
593695
624166
437610
508140
445026
]
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 (523347 , 715286 , 720550 , 790636 , 791835 , 639120 , 681485 , 522749 , 791795 , 742785 , 591901 , 763775 , 702911 , 802329 , 619017 , 748028 , 766260 , 801770 , 427233 , 599464 , 795366 , 734809 , 666041 , 803363 , 773885 , 714418 , 714707 , 723166 , 540588 , 506473 , 627759 , 782539 , 619648 , 723889 , 575583 , 418161 , 431731 , 495000 , 555580 , 495525 , 412141 , 724448 , 523791 , 449459 , 525855 , 451225 , 594536 , 418134 , 583866 , 621375 , 458985 , 456666 , 715282 , 610958 , 583609 , 528474 , 533390 , 593695 , 624166 , 437610 , 508140 , 445026 );
Copy
4
2.18 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
412141
418134
418161
427233
431731
437610
445026
449459
451225
456666
458985
495000
495525
506473
508140
522749
523347
523791
525855
528474
533390
540588
555580
575583
583609
583866
591901
593695
594536
599464
610958
619017
619648
621375
624166
627759
639120
666041
681485
702911
714418
714707
715282
715286
720550
723166
723889
724448
734809
742785
748028
763775
766260
773885
782539
790636
791795
791835
795366
801770
802329
803363
]
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 (412141 , 418134 , 418161 , 427233 , 431731 , 437610 , 445026 , 449459 , 451225 , 456666 , 458985 , 495000 , 495525 , 506473 , 508140 , 522749 , 523347 , 523791 , 525855 , 528474 , 533390 , 540588 , 555580 , 575583 , 583609 , 583866 , 591901 , 593695 , 594536 , 599464 , 610958 , 619017 , 619648 , 621375 , 624166 , 627759 , 639120 , 666041 , 681485 , 702911 , 714418 , 714707 , 715282 , 715286 , 720550 , 723166 , 723889 , 724448 , 734809 , 742785 , 748028 , 763775 , 766260 , 773885 , 782539 , 790636 , 791795 , 791835 , 795366 , 801770 , 802329 , 803363 );
Copy
5
82.65 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
412141
418134
418161
427233
431731
437610
445026
449459
451225
456666
458985
495000
495525
506473
508140
522749
523347
523791
525855
528474
533390
540588
555580
575583
583609
583866
591901
593695
594536
599464
610958
619017
619648
621375
624166
627759
639120
666041
681485
702911
714418
714707
715282
715286
720550
723166
723889
724448
734809
742785
748028
763775
766260
773885
782539
790636
791795
791835
795366
801770
802329
803363
]
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 (412141 , 418134 , 418161 , 427233 , 431731 , 437610 , 445026 , 449459 , 451225 , 456666 , 458985 , 495000 , 495525 , 506473 , 508140 , 522749 , 523347 , 523791 , 525855 , 528474 , 533390 , 540588 , 555580 , 575583 , 583609 , 583866 , 591901 , 593695 , 594536 , 599464 , 610958 , 619017 , 619648 , 621375 , 624166 , 627759 , 639120 , 666041 , 681485 , 702911 , 714418 , 714707 , 715282 , 715286 , 720550 , 723166 , 723889 , 724448 , 734809 , 742785 , 748028 , 763775 , 766260 , 773885 , 782539 , 790636 , 791795 , 791835 , 795366 , 801770 , 802329 , 803363 );
Copy