109.95 ms (75.43%)
1
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
409379
414184
414204
415505
418567
426547
435844
448307
448316
453068
455016
455020
456688
456858
456859
456883
456896
457674
457770
457776
457780
457781
457783
457788
459161
459178
460957
490201
500901
504098
523046
526277
530312
532361
535897
537017
543597
543757
544956
545210
556001
562366
562372
562953
565095
567467
568180
568193
579900
590188
592884
597873
598097
606574
613599
619822
631185
635684
671893
674514
679415
710509
721885
721888
721933
721968
721972
733150
733153
738440
]
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 (409379 , 414184 , 414204 , 415505 , 418567 , 426547 , 435844 , 448307 , 448316 , 453068 , 455016 , 455020 , 456688 , 456858 , 456859 , 456883 , 456896 , 457674 , 457770 , 457776 , 457780 , 457781 , 457783 , 457788 , 459161 , 459178 , 460957 , 490201 , 500901 , 504098 , 523046 , 526277 , 530312 , 532361 , 535897 , 537017 , 543597 , 543757 , 544956 , 545210 , 556001 , 562366 , 562372 , 562953 , 565095 , 567467 , 568180 , 568193 , 579900 , 590188 , 592884 , 597873 , 598097 , 606574 , 613599 , 619822 , 631185 , 635684 , 671893 , 674514 , 679415 , 710509 , 721885 , 721888 , 721933 , 721968 , 721972 , 733150 , 733153 , 738440 );
Copy
9.45 ms (6.48%)
1
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
721888
409379
721968
459178
635684
415505
545210
679415
631185
568180
721972
562372
613599
532361
543757
544956
733150
537017
592884
597873
721933
721885
556001
535897
562366
459161
456896
456859
456883
530312
674514
733153
710509
562953
619822
590188
418567
606574
457781
457674
456688
457770
671893
457788
523046
568193
738440
435844
526277
453068
543597
455020
457783
567467
490201
457780
456858
448307
460957
579900
414184
448316
457776
455016
504098
598097
426547
414204
500901
565095
]
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 (721888 , 409379 , 721968 , 459178 , 635684 , 415505 , 545210 , 679415 , 631185 , 568180 , 721972 , 562372 , 613599 , 532361 , 543757 , 544956 , 733150 , 537017 , 592884 , 597873 , 721933 , 721885 , 556001 , 535897 , 562366 , 459161 , 456896 , 456859 , 456883 , 530312 , 674514 , 733153 , 710509 , 562953 , 619822 , 590188 , 418567 , 606574 , 457781 , 457674 , 456688 , 457770 , 671893 , 457788 , 523046 , 568193 , 738440 , 435844 , 526277 , 453068 , 543597 , 455020 , 457783 , 567467 , 490201 , 457780 , 456858 , 448307 , 460957 , 579900 , 414184 , 448316 , 457776 , 455016 , 504098 , 598097 , 426547 , 414204 , 500901 , 565095 );
Copy
3.34 ms (2.29%)
1
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
409379
414184
414204
415505
418567
426547
435844
448307
448316
453068
455016
455020
456688
456858
456859
456883
456896
457674
457770
457776
457780
457781
457783
457788
459161
459178
460957
490201
500901
504098
523046
526277
530312
532361
535897
537017
543597
543757
544956
545210
556001
562366
562372
562953
565095
567467
568180
568193
579900
590188
592884
597873
598097
606574
613599
619822
631185
635684
671893
674514
679415
710509
721885
721888
721933
721968
721972
733150
733153
738440
]
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 (409379 , 414184 , 414204 , 415505 , 418567 , 426547 , 435844 , 448307 , 448316 , 453068 , 455016 , 455020 , 456688 , 456858 , 456859 , 456883 , 456896 , 457674 , 457770 , 457776 , 457780 , 457781 , 457783 , 457788 , 459161 , 459178 , 460957 , 490201 , 500901 , 504098 , 523046 , 526277 , 530312 , 532361 , 535897 , 537017 , 543597 , 543757 , 544956 , 545210 , 556001 , 562366 , 562372 , 562953 , 565095 , 567467 , 568180 , 568193 , 579900 , 590188 , 592884 , 597873 , 598097 , 606574 , 613599 , 619822 , 631185 , 635684 , 671893 , 674514 , 679415 , 710509 , 721885 , 721888 , 721933 , 721968 , 721972 , 733150 , 733153 , 738440 );
Copy