3
12.27 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
784975
796767
769286
590507
530623
537902
650333
712881
826715
600500
644493
747955
463341
508541
534553
531173
441046
662162
719934
707678
722401
805975
718658
796221
448579
463893
489263
465171
457143
406172
440761
593840
803112
770404
446641
525365
382311
652947
532843
612399
653726
740920
468160
446948
445211
446108
448840
443103
448808
449210
565283
632699
435398
473056
525348
399224
660370
532984
603403
491644
508487
425820
602608
531174
514236
]
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 (784975 , 796767 , 769286 , 590507 , 530623 , 537902 , 650333 , 712881 , 826715 , 600500 , 644493 , 747955 , 463341 , 508541 , 534553 , 531173 , 441046 , 662162 , 719934 , 707678 , 722401 , 805975 , 718658 , 796221 , 448579 , 463893 , 489263 , 465171 , 457143 , 406172 , 440761 , 593840 , 803112 , 770404 , 446641 , 525365 , 382311 , 652947 , 532843 , 612399 , 653726 , 740920 , 468160 , 446948 , 445211 , 446108 , 448840 , 443103 , 448808 , 449210 , 565283 , 632699 , 435398 , 473056 , 525348 , 399224 , 660370 , 532984 , 603403 , 491644 , 508487 , 425820 , 602608 , 531174 , 514236 );
Copy
4
3.46 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
382311
399224
406172
425820
435398
440761
441046
443103
445211
446108
446641
446948
448579
448808
448840
449210
457143
463341
463893
465171
468160
473056
489263
491644
508487
508541
514236
525348
525365
530623
531173
531174
532843
532984
534553
537902
565283
590507
593840
600500
602608
603403
612399
632699
644493
650333
652947
653726
660370
662162
707678
712881
718658
719934
722401
740920
747955
769286
770404
784975
796221
796767
803112
805975
826715
]
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 (382311 , 399224 , 406172 , 425820 , 435398 , 440761 , 441046 , 443103 , 445211 , 446108 , 446641 , 446948 , 448579 , 448808 , 448840 , 449210 , 457143 , 463341 , 463893 , 465171 , 468160 , 473056 , 489263 , 491644 , 508487 , 508541 , 514236 , 525348 , 525365 , 530623 , 531173 , 531174 , 532843 , 532984 , 534553 , 537902 , 565283 , 590507 , 593840 , 600500 , 602608 , 603403 , 612399 , 632699 , 644493 , 650333 , 652947 , 653726 , 660370 , 662162 , 707678 , 712881 , 718658 , 719934 , 722401 , 740920 , 747955 , 769286 , 770404 , 784975 , 796221 , 796767 , 803112 , 805975 , 826715 );
Copy
5
83.07 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
382311
399224
406172
425820
435398
440761
441046
443103
445211
446108
446641
446948
448579
448808
448840
449210
457143
463341
463893
465171
468160
473056
489263
491644
508487
508541
514236
525348
525365
530623
531173
531174
532843
532984
534553
537902
565283
590507
593840
600500
602608
603403
612399
632699
644493
650333
652947
653726
660370
662162
707678
712881
718658
719934
722401
740920
747955
769286
770404
784975
796221
796767
803112
805975
826715
]
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 (382311 , 399224 , 406172 , 425820 , 435398 , 440761 , 441046 , 443103 , 445211 , 446108 , 446641 , 446948 , 448579 , 448808 , 448840 , 449210 , 457143 , 463341 , 463893 , 465171 , 468160 , 473056 , 489263 , 491644 , 508487 , 508541 , 514236 , 525348 , 525365 , 530623 , 531173 , 531174 , 532843 , 532984 , 534553 , 537902 , 565283 , 590507 , 593840 , 600500 , 602608 , 603403 , 612399 , 632699 , 644493 , 650333 , 652947 , 653726 , 660370 , 662162 , 707678 , 712881 , 718658 , 719934 , 722401 , 740920 , 747955 , 769286 , 770404 , 784975 , 796221 , 796767 , 803112 , 805975 , 826715 );
Copy