4
12.34 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
783780
719817
495261
537618
591859
584428
454251
730186
680102
459494
798946
819716
511799
555147
537606
543538
720333
744388
747171
798769
800308
565827
710335
719850
826273
810310
824790
714558
626589
811537
494935
712130
680030
726232
814402
483586
599432
793343
724841
481399
494203
445714
479691
486614
465910
479640
552059
712558
712106
644798
800047
511118
486613
539469
733317
615031
814782
587178
500883
467338
440631
534683
440620
526884
555136
511830
]
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 (783780 , 719817 , 495261 , 537618 , 591859 , 584428 , 454251 , 730186 , 680102 , 459494 , 798946 , 819716 , 511799 , 555147 , 537606 , 543538 , 720333 , 744388 , 747171 , 798769 , 800308 , 565827 , 710335 , 719850 , 826273 , 810310 , 824790 , 714558 , 626589 , 811537 , 494935 , 712130 , 680030 , 726232 , 814402 , 483586 , 599432 , 793343 , 724841 , 481399 , 494203 , 445714 , 479691 , 486614 , 465910 , 479640 , 552059 , 712558 , 712106 , 644798 , 800047 , 511118 , 486613 , 539469 , 733317 , 615031 , 814782 , 587178 , 500883 , 467338 , 440631 , 534683 , 440620 , 526884 , 555136 , 511830 );
Copy
5
2.45 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
440620
440631
445714
454251
459494
465910
467338
479640
479691
481399
483586
486613
486614
494203
494935
495261
500883
511118
511799
511830
526884
534683
537606
537618
539469
543538
552059
555136
555147
565827
584428
587178
591859
615031
626589
644798
680030
680102
710335
712106
712130
712558
714558
719817
719850
720333
724841
726232
730186
733317
744388
747171
783780
793343
798769
798946
800047
800308
810310
811537
814402
814782
819716
824790
826273
]
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 (440620 , 440631 , 445714 , 454251 , 459494 , 465910 , 467338 , 479640 , 479691 , 481399 , 483586 , 486613 , 486614 , 494203 , 494935 , 495261 , 500883 , 511118 , 511799 , 511830 , 526884 , 534683 , 537606 , 537618 , 539469 , 543538 , 552059 , 555136 , 555147 , 565827 , 584428 , 587178 , 591859 , 615031 , 626589 , 644798 , 680030 , 680102 , 710335 , 712106 , 712130 , 712558 , 714558 , 719817 , 719850 , 720333 , 724841 , 726232 , 730186 , 733317 , 744388 , 747171 , 783780 , 793343 , 798769 , 798946 , 800047 , 800308 , 810310 , 811537 , 814402 , 814782 , 819716 , 824790 , 826273 );
Copy
6
106.37 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
440620
440631
445714
454251
459494
465910
467338
479640
479691
481399
483586
486613
486614
494203
494935
495261
500883
511118
511799
511830
526884
534683
537606
537618
539469
543538
552059
555136
555147
565827
584428
587178
591859
615031
626589
644798
680030
680102
710335
712106
712130
712558
714558
719817
719850
720333
724841
726232
730186
733317
744388
747171
783780
793343
798769
798946
800047
800308
810310
811537
814402
814782
819716
824790
826273
]
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 (440620 , 440631 , 445714 , 454251 , 459494 , 465910 , 467338 , 479640 , 479691 , 481399 , 483586 , 486613 , 486614 , 494203 , 494935 , 495261 , 500883 , 511118 , 511799 , 511830 , 526884 , 534683 , 537606 , 537618 , 539469 , 543538 , 552059 , 555136 , 555147 , 565827 , 584428 , 587178 , 591859 , 615031 , 626589 , 644798 , 680030 , 680102 , 710335 , 712106 , 712130 , 712558 , 714558 , 719817 , 719850 , 720333 , 724841 , 726232 , 730186 , 733317 , 744388 , 747171 , 783780 , 793343 , 798769 , 798946 , 800047 , 800308 , 810310 , 811537 , 814402 , 814782 , 819716 , 824790 , 826273 );
Copy