93.75 ms (28.08%)
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
398362
398731
404026
404027
406171
412849
419617
434642
447353
447386
451144
452386
452397
461880
461959
485659
490614
510556
510560
511690
520228
522428
532811
534672
534911
534912
535342
535881
536882
556506
566615
573432
575289
578599
587018
597514
604040
606254
613604
703553
710046
718087
718107
718120
718131
728926
730319
732947
735493
735502
738497
738522
759178
760646
761130
788202
795459
805163
808786
812174
818816
820129
824190
]
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 (398362 , 398731 , 404026 , 404027 , 406171 , 412849 , 419617 , 434642 , 447353 , 447386 , 451144 , 452386 , 452397 , 461880 , 461959 , 485659 , 490614 , 510556 , 510560 , 511690 , 520228 , 522428 , 532811 , 534672 , 534911 , 534912 , 535342 , 535881 , 536882 , 556506 , 566615 , 573432 , 575289 , 578599 , 587018 , 597514 , 604040 , 606254 , 613604 , 703553 , 710046 , 718087 , 718107 , 718120 , 718131 , 728926 , 730319 , 732947 , 735493 , 735502 , 738497 , 738522 , 759178 , 760646 , 761130 , 788202 , 795459 , 805163 , 808786 , 812174 , 818816 , 820129 , 824190 );
Copy
10.47 ms (3.14%)
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
808786
522428
534911
535881
536882
534912
575289
511690
732947
820129
398731
404027
759178
818816
613604
718107
718131
573432
730319
447353
718120
738522
532811
738497
760646
710046
718087
597514
398362
824190
795459
735493
404026
510556
735502
520228
805163
788202
490614
447386
556506
812174
452397
534672
703553
452386
461959
761130
728926
606254
587018
461880
510560
566615
485659
412849
419617
578599
451144
604040
434642
535342
406171
]
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 (808786 , 522428 , 534911 , 535881 , 536882 , 534912 , 575289 , 511690 , 732947 , 820129 , 398731 , 404027 , 759178 , 818816 , 613604 , 718107 , 718131 , 573432 , 730319 , 447353 , 718120 , 738522 , 532811 , 738497 , 760646 , 710046 , 718087 , 597514 , 398362 , 824190 , 795459 , 735493 , 404026 , 510556 , 735502 , 520228 , 805163 , 788202 , 490614 , 447386 , 556506 , 812174 , 452397 , 534672 , 703553 , 452386 , 461959 , 761130 , 728926 , 606254 , 587018 , 461880 , 510560 , 566615 , 485659 , 412849 , 419617 , 578599 , 451144 , 604040 , 434642 , 535342 , 406171 );
Copy
2.57 ms (0.77%)
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
398362
398731
404026
404027
406171
412849
419617
434642
447353
447386
451144
452386
452397
461880
461959
485659
490614
510556
510560
511690
520228
522428
532811
534672
534911
534912
535342
535881
536882
556506
566615
573432
575289
578599
587018
597514
604040
606254
613604
703553
710046
718087
718107
718120
718131
728926
730319
732947
735493
735502
738497
738522
759178
760646
761130
788202
795459
805163
808786
812174
818816
820129
824190
]
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 (398362 , 398731 , 404026 , 404027 , 406171 , 412849 , 419617 , 434642 , 447353 , 447386 , 451144 , 452386 , 452397 , 461880 , 461959 , 485659 , 490614 , 510556 , 510560 , 511690 , 520228 , 522428 , 532811 , 534672 , 534911 , 534912 , 535342 , 535881 , 536882 , 556506 , 566615 , 573432 , 575289 , 578599 , 587018 , 597514 , 604040 , 606254 , 613604 , 703553 , 710046 , 718087 , 718107 , 718120 , 718131 , 728926 , 730319 , 732947 , 735493 , 735502 , 738497 , 738522 , 759178 , 760646 , 761130 , 788202 , 795459 , 805163 , 808786 , 812174 , 818816 , 820129 , 824190 );
Copy