4
13.07 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
627153
500038
674267
628514
674266
530970
687830
779142
647654
781583
768203
775739
685764
680833
703812
720269
697244
588354
609206
790157
739280
742374
592270
742153
765142
673328
704673
705111
648441
714558
479398
506435
576523
741382
741551
743741
703514
807325
545531
684588
697382
682076
640143
794288
524950
445046
521175
555626
572330
678899
687245
580061
548572
588095
490522
498423
569562
598138
621448
586695
578537
571823
551153
562803
590993
596515
620223
502695
]
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 (627153 , 500038 , 674267 , 628514 , 674266 , 530970 , 687830 , 779142 , 647654 , 781583 , 768203 , 775739 , 685764 , 680833 , 703812 , 720269 , 697244 , 588354 , 609206 , 790157 , 739280 , 742374 , 592270 , 742153 , 765142 , 673328 , 704673 , 705111 , 648441 , 714558 , 479398 , 506435 , 576523 , 741382 , 741551 , 743741 , 703514 , 807325 , 545531 , 684588 , 697382 , 682076 , 640143 , 794288 , 524950 , 445046 , 521175 , 555626 , 572330 , 678899 , 687245 , 580061 , 548572 , 588095 , 490522 , 498423 , 569562 , 598138 , 621448 , 586695 , 578537 , 571823 , 551153 , 562803 , 590993 , 596515 , 620223 , 502695 );
Copy
5
208.10 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
445046
479398
490522
498423
500038
502695
506435
521175
524950
530970
545531
548572
551153
555626
562803
569562
571823
572330
576523
578537
580061
586695
588095
588354
590993
592270
596515
598138
609206
620223
621448
627153
628514
640143
647654
648441
673328
674266
674267
678899
680833
682076
684588
685764
687245
687830
697244
697382
703514
703812
704673
705111
714558
720269
739280
741382
742153
742374
743741
765142
768203
775739
779142
781583
790157
794288
807325
]
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 (445046 , 479398 , 490522 , 498423 , 500038 , 502695 , 506435 , 521175 , 524950 , 530970 , 545531 , 548572 , 551153 , 555626 , 562803 , 569562 , 571823 , 572330 , 576523 , 578537 , 580061 , 586695 , 588095 , 588354 , 590993 , 592270 , 596515 , 598138 , 609206 , 620223 , 621448 , 627153 , 628514 , 640143 , 647654 , 648441 , 673328 , 674266 , 674267 , 678899 , 680833 , 682076 , 684588 , 685764 , 687245 , 687830 , 697244 , 697382 , 703514 , 703812 , 704673 , 705111 , 714558 , 720269 , 739280 , 741382 , 742153 , 742374 , 743741 , 765142 , 768203 , 775739 , 779142 , 781583 , 790157 , 794288 , 807325 );
Copy
6
96.12 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
445046
479398
490522
498423
500038
502695
506435
521175
524950
530970
545531
548572
551153
555626
562803
569562
571823
572330
576523
578537
580061
586695
588095
588354
590993
592270
596515
598138
609206
620223
621448
627153
628514
640143
647654
648441
673328
674266
674267
678899
680833
682076
684588
685764
687245
687830
697244
697382
703514
703812
704673
705111
714558
720269
739280
741382
742153
742374
743741
765142
768203
775739
779142
781583
790157
794288
807325
]
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 (445046 , 479398 , 490522 , 498423 , 500038 , 502695 , 506435 , 521175 , 524950 , 530970 , 545531 , 548572 , 551153 , 555626 , 562803 , 569562 , 571823 , 572330 , 576523 , 578537 , 580061 , 586695 , 588095 , 588354 , 590993 , 592270 , 596515 , 598138 , 609206 , 620223 , 621448 , 627153 , 628514 , 640143 , 647654 , 648441 , 673328 , 674266 , 674267 , 678899 , 680833 , 682076 , 684588 , 685764 , 687245 , 687830 , 697244 , 697382 , 703514 , 703812 , 704673 , 705111 , 714558 , 720269 , 739280 , 741382 , 742153 , 742374 , 743741 , 765142 , 768203 , 775739 , 779142 , 781583 , 790157 , 794288 , 807325 );
Copy