211.14 ms (63.55%)
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
182206
382918
389982
391187
392704
405816
420658
434286
434325
442307
457327
460016
462342
466289
469031
470068
475110
475123
476046
476176
477146
477147
478100
479694
482623
485892
493537
495568
499927
501228
506065
513793
516495
516843
520262
520651
530707
533841
534018
534019
535076
550209
551831
553855
562222
570967
578253
583532
585316
586360
590487
594549
595981
606867
607631
619091
623677
625780
626872
640592
666436
699325
738099
749242
752921
765168
787104
798605
803751
]
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 (182206 , 382918 , 389982 , 391187 , 392704 , 405816 , 420658 , 434286 , 434325 , 442307 , 457327 , 460016 , 462342 , 466289 , 469031 , 470068 , 475110 , 475123 , 476046 , 476176 , 477146 , 477147 , 478100 , 479694 , 482623 , 485892 , 493537 , 495568 , 499927 , 501228 , 506065 , 513793 , 516495 , 516843 , 520262 , 520651 , 530707 , 533841 , 534018 , 534019 , 535076 , 550209 , 551831 , 553855 , 562222 , 570967 , 578253 , 583532 , 585316 , 586360 , 590487 , 594549 , 595981 , 606867 , 607631 , 619091 , 623677 , 625780 , 626872 , 640592 , 666436 , 699325 , 738099 , 749242 , 752921 , 765168 , 787104 , 798605 , 803751 );
Copy
81.42 ms (24.51%)
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
182206
382918
389982
391187
392704
405816
420658
434286
434325
442307
457327
460016
462342
466289
469031
470068
475110
475123
476046
476176
477146
477147
478100
479694
482623
485892
493537
495568
499927
501228
506065
513793
516495
516843
520262
520651
530707
533841
534018
534019
535076
550209
551831
553855
562222
570967
578253
583532
585316
586360
590487
594549
595981
606867
607631
619091
623677
625780
626872
640592
666436
699325
738099
749242
752921
765168
787104
798605
803751
]
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 (182206 , 382918 , 389982 , 391187 , 392704 , 405816 , 420658 , 434286 , 434325 , 442307 , 457327 , 460016 , 462342 , 466289 , 469031 , 470068 , 475110 , 475123 , 476046 , 476176 , 477146 , 477147 , 478100 , 479694 , 482623 , 485892 , 493537 , 495568 , 499927 , 501228 , 506065 , 513793 , 516495 , 516843 , 520262 , 520651 , 530707 , 533841 , 534018 , 534019 , 535076 , 550209 , 551831 , 553855 , 562222 , 570967 , 578253 , 583532 , 585316 , 586360 , 590487 , 594549 , 595981 , 606867 , 607631 , 619091 , 623677 , 625780 , 626872 , 640592 , 666436 , 699325 , 738099 , 749242 , 752921 , 765168 , 787104 , 798605 , 803751 );
Copy
12.10 ms (3.64%)
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
803751
466289
476046
478100
533841
570967
578253
583532
640592
752921
475123
493537
482623
469031
499927
516843
553855
607631
623677
595981
765168
391187
382918
389982
485892
534018
666436
699325
586360
798605
787104
738099
606867
392704
457327
475110
477146
470068
516495
530707
405816
513793
562222
551831
585316
619091
626872
749242
434325
506065
520651
182206
442307
460016
534019
590487
476176
479694
434286
477147
550209
420658
535076
594549
625780
462342
501228
495568
520262
]
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 (803751 , 466289 , 476046 , 478100 , 533841 , 570967 , 578253 , 583532 , 640592 , 752921 , 475123 , 493537 , 482623 , 469031 , 499927 , 516843 , 553855 , 607631 , 623677 , 595981 , 765168 , 391187 , 382918 , 389982 , 485892 , 534018 , 666436 , 699325 , 586360 , 798605 , 787104 , 738099 , 606867 , 392704 , 457327 , 475110 , 477146 , 470068 , 516495 , 530707 , 405816 , 513793 , 562222 , 551831 , 585316 , 619091 , 626872 , 749242 , 434325 , 506065 , 520651 , 182206 , 442307 , 460016 , 534019 , 590487 , 476176 , 479694 , 434286 , 477147 , 550209 , 420658 , 535076 , 594549 , 625780 , 462342 , 501228 , 495568 , 520262 );
Copy