68.85 ms (65.24%)
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
413944
415223
434001
446529
447426
447560
447885
451620
511497
514113
521579
528098
529200
530489
530681
533512
534387
540330
541848
542216
544823
544825
553280
565259
571303
573953
580669
583700
584709
597139
597227
597235
599875
599912
606798
627806
628333
628371
628376
628382
628383
628387
628392
628406
632975
637009
637094
640762
642691
645997
647343
647859
666876
666880
672710
672712
678127
680181
680183
680195
680197
687158
696996
720056
733884
]
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 (413944 , 415223 , 434001 , 446529 , 447426 , 447560 , 447885 , 451620 , 511497 , 514113 , 521579 , 528098 , 529200 , 530489 , 530681 , 533512 , 534387 , 540330 , 541848 , 542216 , 544823 , 544825 , 553280 , 565259 , 571303 , 573953 , 580669 , 583700 , 584709 , 597139 , 597227 , 597235 , 599875 , 599912 , 606798 , 627806 , 628333 , 628371 , 628376 , 628382 , 628383 , 628387 , 628392 , 628406 , 632975 , 637009 , 637094 , 640762 , 642691 , 645997 , 647343 , 647859 , 666876 , 666880 , 672710 , 672712 , 678127 , 680181 , 680183 , 680195 , 680197 , 687158 , 696996 , 720056 , 733884 );
Copy
9.44 ms (8.95%)
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
415223
542216
571303
696996
632975
628376
597139
628392
733884
447560
511497
413944
451620
530489
530681
544823
573953
597227
637009
640762
447885
528098
678127
680183
584709
628387
628406
599912
606798
637094
565259
645997
597235
446529
533512
680181
720056
666876
642691
599875
434001
583700
521579
544825
647343
687158
672710
672712
647859
628382
680195
680197
580669
627806
529200
447426
534387
541848
514113
666880
628383
628371
540330
628333
553280
]
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 (415223 , 542216 , 571303 , 696996 , 632975 , 628376 , 597139 , 628392 , 733884 , 447560 , 511497 , 413944 , 451620 , 530489 , 530681 , 544823 , 573953 , 597227 , 637009 , 640762 , 447885 , 528098 , 678127 , 680183 , 584709 , 628387 , 628406 , 599912 , 606798 , 637094 , 565259 , 645997 , 597235 , 446529 , 533512 , 680181 , 720056 , 666876 , 642691 , 599875 , 434001 , 583700 , 521579 , 544825 , 647343 , 687158 , 672710 , 672712 , 647859 , 628382 , 680195 , 680197 , 580669 , 627806 , 529200 , 447426 , 534387 , 541848 , 514113 , 666880 , 628383 , 628371 , 540330 , 628333 , 553280 );
Copy
3.18 ms (3.01%)
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
413944
415223
434001
446529
447426
447560
447885
451620
511497
514113
521579
528098
529200
530489
530681
533512
534387
540330
541848
542216
544823
544825
553280
565259
571303
573953
580669
583700
584709
597139
597227
597235
599875
599912
606798
627806
628333
628371
628376
628382
628383
628387
628392
628406
632975
637009
637094
640762
642691
645997
647343
647859
666876
666880
672710
672712
678127
680181
680183
680195
680197
687158
696996
720056
733884
]
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 (413944 , 415223 , 434001 , 446529 , 447426 , 447560 , 447885 , 451620 , 511497 , 514113 , 521579 , 528098 , 529200 , 530489 , 530681 , 533512 , 534387 , 540330 , 541848 , 542216 , 544823 , 544825 , 553280 , 565259 , 571303 , 573953 , 580669 , 583700 , 584709 , 597139 , 597227 , 597235 , 599875 , 599912 , 606798 , 627806 , 628333 , 628371 , 628376 , 628382 , 628383 , 628387 , 628392 , 628406 , 632975 , 637009 , 637094 , 640762 , 642691 , 645997 , 647343 , 647859 , 666876 , 666880 , 672710 , 672712 , 678127 , 680181 , 680183 , 680195 , 680197 , 687158 , 696996 , 720056 , 733884 );
Copy