3
12.48 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
403074
209384
407793
129935
512182
383121
451558
582760
398022
802594
469434
460361
755447
421087
387599
719322
647636
430209
748257
546022
720264
407290
510759
123610
491395
389980
411342
446589
409061
447454
566264
486183
551273
666530
473637
482788
660424
391262
470019
429574
526133
544854
581887
452058
495043
462310
459828
552617
460729
484618
484472
513603
443745
576690
524895
514576
557938
551222
603205
568450
581193
484728
495703
598806
513539
535011
505132
556046
614995
646176
552061
452255
488734
613174
609196
]
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 (403074 , 209384 , 407793 , 129935 , 512182 , 383121 , 451558 , 582760 , 398022 , 802594 , 469434 , 460361 , 755447 , 421087 , 387599 , 719322 , 647636 , 430209 , 748257 , 546022 , 720264 , 407290 , 510759 , 123610 , 491395 , 389980 , 411342 , 446589 , 409061 , 447454 , 566264 , 486183 , 551273 , 666530 , 473637 , 482788 , 660424 , 391262 , 470019 , 429574 , 526133 , 544854 , 581887 , 452058 , 495043 , 462310 , 459828 , 552617 , 460729 , 484618 , 484472 , 513603 , 443745 , 576690 , 524895 , 514576 , 557938 , 551222 , 603205 , 568450 , 581193 , 484728 , 495703 , 598806 , 513539 , 535011 , 505132 , 556046 , 614995 , 646176 , 552061 , 452255 , 488734 , 613174 , 609196 );
Copy
4
2.19 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
123610
129935
209384
383121
387599
389980
391262
398022
403074
407290
407793
409061
411342
421087
429574
430209
443745
446589
447454
451558
452058
452255
459828
460361
460729
462310
469434
470019
473637
482788
484472
484618
484728
486183
488734
491395
495043
495703
505132
510759
512182
513539
513603
514576
524895
526133
535011
544854
546022
551222
551273
552061
552617
556046
557938
566264
568450
576690
581193
581887
582760
598806
603205
609196
613174
614995
646176
647636
660424
666530
719322
720264
748257
755447
802594
]
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 (123610 , 129935 , 209384 , 383121 , 387599 , 389980 , 391262 , 398022 , 403074 , 407290 , 407793 , 409061 , 411342 , 421087 , 429574 , 430209 , 443745 , 446589 , 447454 , 451558 , 452058 , 452255 , 459828 , 460361 , 460729 , 462310 , 469434 , 470019 , 473637 , 482788 , 484472 , 484618 , 484728 , 486183 , 488734 , 491395 , 495043 , 495703 , 505132 , 510759 , 512182 , 513539 , 513603 , 514576 , 524895 , 526133 , 535011 , 544854 , 546022 , 551222 , 551273 , 552061 , 552617 , 556046 , 557938 , 566264 , 568450 , 576690 , 581193 , 581887 , 582760 , 598806 , 603205 , 609196 , 613174 , 614995 , 646176 , 647636 , 660424 , 666530 , 719322 , 720264 , 748257 , 755447 , 802594 );
Copy
5
100.19 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
123610
129935
209384
383121
387599
389980
391262
398022
403074
407290
407793
409061
411342
421087
429574
430209
443745
446589
447454
451558
452058
452255
459828
460361
460729
462310
469434
470019
473637
482788
484472
484618
484728
486183
488734
491395
495043
495703
505132
510759
512182
513539
513603
514576
524895
526133
535011
544854
546022
551222
551273
552061
552617
556046
557938
566264
568450
576690
581193
581887
582760
598806
603205
609196
613174
614995
646176
647636
660424
666530
719322
720264
748257
755447
802594
]
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 (123610 , 129935 , 209384 , 383121 , 387599 , 389980 , 391262 , 398022 , 403074 , 407290 , 407793 , 409061 , 411342 , 421087 , 429574 , 430209 , 443745 , 446589 , 447454 , 451558 , 452058 , 452255 , 459828 , 460361 , 460729 , 462310 , 469434 , 470019 , 473637 , 482788 , 484472 , 484618 , 484728 , 486183 , 488734 , 491395 , 495043 , 495703 , 505132 , 510759 , 512182 , 513539 , 513603 , 514576 , 524895 , 526133 , 535011 , 544854 , 546022 , 551222 , 551273 , 552061 , 552617 , 556046 , 557938 , 566264 , 568450 , 576690 , 581193 , 581887 , 582760 , 598806 , 603205 , 609196 , 613174 , 614995 , 646176 , 647636 , 660424 , 666530 , 719322 , 720264 , 748257 , 755447 , 802594 );
Copy