3
12.58 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
826026
691981
690624
712667
819741
687957
771193
827462
659185
786961
765279
825290
795122
765932
778184
490502
758695
827785
653853
719563
750613
724916
634661
722169
730288
694926
557004
694929
591568
500152
511227
541817
456433
760767
740826
726858
561325
557912
809687
485588
432589
555856
457308
428034
495418
455485
473006
450534
520260
602814
589590
453726
445267
802310
827729
818877
766295
757477
802808
791612
531454
768548
780023
509124
554614
613028
666823
441290
514615
]
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 (826026 , 691981 , 690624 , 712667 , 819741 , 687957 , 771193 , 827462 , 659185 , 786961 , 765279 , 825290 , 795122 , 765932 , 778184 , 490502 , 758695 , 827785 , 653853 , 719563 , 750613 , 724916 , 634661 , 722169 , 730288 , 694926 , 557004 , 694929 , 591568 , 500152 , 511227 , 541817 , 456433 , 760767 , 740826 , 726858 , 561325 , 557912 , 809687 , 485588 , 432589 , 555856 , 457308 , 428034 , 495418 , 455485 , 473006 , 450534 , 520260 , 602814 , 589590 , 453726 , 445267 , 802310 , 827729 , 818877 , 766295 , 757477 , 802808 , 791612 , 531454 , 768548 , 780023 , 509124 , 554614 , 613028 , 666823 , 441290 , 514615 );
Copy
4
2.59 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
428034
432589
441290
445267
450534
453726
455485
456433
457308
473006
485588
490502
495418
500152
509124
511227
514615
520260
531454
541817
554614
555856
557004
557912
561325
589590
591568
602814
613028
634661
653853
659185
666823
687957
690624
691981
694926
694929
712667
719563
722169
724916
726858
730288
740826
750613
757477
758695
760767
765279
765932
766295
768548
771193
778184
780023
786961
791612
795122
802310
802808
809687
818877
819741
825290
826026
827462
827729
827785
]
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 (428034 , 432589 , 441290 , 445267 , 450534 , 453726 , 455485 , 456433 , 457308 , 473006 , 485588 , 490502 , 495418 , 500152 , 509124 , 511227 , 514615 , 520260 , 531454 , 541817 , 554614 , 555856 , 557004 , 557912 , 561325 , 589590 , 591568 , 602814 , 613028 , 634661 , 653853 , 659185 , 666823 , 687957 , 690624 , 691981 , 694926 , 694929 , 712667 , 719563 , 722169 , 724916 , 726858 , 730288 , 740826 , 750613 , 757477 , 758695 , 760767 , 765279 , 765932 , 766295 , 768548 , 771193 , 778184 , 780023 , 786961 , 791612 , 795122 , 802310 , 802808 , 809687 , 818877 , 819741 , 825290 , 826026 , 827462 , 827729 , 827785 );
Copy
5
83.23 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
428034
432589
441290
445267
450534
453726
455485
456433
457308
473006
485588
490502
495418
500152
509124
511227
514615
520260
531454
541817
554614
555856
557004
557912
561325
589590
591568
602814
613028
634661
653853
659185
666823
687957
690624
691981
694926
694929
712667
719563
722169
724916
726858
730288
740826
750613
757477
758695
760767
765279
765932
766295
768548
771193
778184
780023
786961
791612
795122
802310
802808
809687
818877
819741
825290
826026
827462
827729
827785
]
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 (428034 , 432589 , 441290 , 445267 , 450534 , 453726 , 455485 , 456433 , 457308 , 473006 , 485588 , 490502 , 495418 , 500152 , 509124 , 511227 , 514615 , 520260 , 531454 , 541817 , 554614 , 555856 , 557004 , 557912 , 561325 , 589590 , 591568 , 602814 , 613028 , 634661 , 653853 , 659185 , 666823 , 687957 , 690624 , 691981 , 694926 , 694929 , 712667 , 719563 , 722169 , 724916 , 726858 , 730288 , 740826 , 750613 , 757477 , 758695 , 760767 , 765279 , 765932 , 766295 , 768548 , 771193 , 778184 , 780023 , 786961 , 791612 , 795122 , 802310 , 802808 , 809687 , 818877 , 819741 , 825290 , 826026 , 827462 , 827729 , 827785 );
Copy