3
10.38 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
464410
813118
626128
435931
446522
486946
624139
512381
562598
416165
817569
818588
802468
603425
816991
593757
753461
817223
817849
817825
671688
755953
791966
801760
793781
602970
752515
788798
403660
815263
606703
775204
808080
811782
771807
769399
788607
795594
467303
408657
458712
578606
616521
730722
745827
759464
404311
408299
521563
507521
553292
566057
622785
616559
808603
481665
509309
532068
573304
606759
421030
477239
513095
513953
543777
522525
]
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 (464410 , 813118 , 626128 , 435931 , 446522 , 486946 , 624139 , 512381 , 562598 , 416165 , 817569 , 818588 , 802468 , 603425 , 816991 , 593757 , 753461 , 817223 , 817849 , 817825 , 671688 , 755953 , 791966 , 801760 , 793781 , 602970 , 752515 , 788798 , 403660 , 815263 , 606703 , 775204 , 808080 , 811782 , 771807 , 769399 , 788607 , 795594 , 467303 , 408657 , 458712 , 578606 , 616521 , 730722 , 745827 , 759464 , 404311 , 408299 , 521563 , 507521 , 553292 , 566057 , 622785 , 616559 , 808603 , 481665 , 509309 , 532068 , 573304 , 606759 , 421030 , 477239 , 513095 , 513953 , 543777 , 522525 );
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
403660
404311
408299
408657
416165
421030
435931
446522
458712
464410
467303
477239
481665
486946
507521
509309
512381
513095
513953
521563
522525
532068
543777
553292
562598
566057
573304
578606
593757
602970
603425
606703
606759
616521
616559
622785
624139
626128
671688
730722
745827
752515
753461
755953
759464
769399
771807
775204
788607
788798
791966
793781
795594
801760
802468
808080
808603
811782
813118
815263
816991
817223
817569
817825
817849
818588
]
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 (403660 , 404311 , 408299 , 408657 , 416165 , 421030 , 435931 , 446522 , 458712 , 464410 , 467303 , 477239 , 481665 , 486946 , 507521 , 509309 , 512381 , 513095 , 513953 , 521563 , 522525 , 532068 , 543777 , 553292 , 562598 , 566057 , 573304 , 578606 , 593757 , 602970 , 603425 , 606703 , 606759 , 616521 , 616559 , 622785 , 624139 , 626128 , 671688 , 730722 , 745827 , 752515 , 753461 , 755953 , 759464 , 769399 , 771807 , 775204 , 788607 , 788798 , 791966 , 793781 , 795594 , 801760 , 802468 , 808080 , 808603 , 811782 , 813118 , 815263 , 816991 , 817223 , 817569 , 817825 , 817849 , 818588 );
Copy
5
110.93 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
403660
404311
408299
408657
416165
421030
435931
446522
458712
464410
467303
477239
481665
486946
507521
509309
512381
513095
513953
521563
522525
532068
543777
553292
562598
566057
573304
578606
593757
602970
603425
606703
606759
616521
616559
622785
624139
626128
671688
730722
745827
752515
753461
755953
759464
769399
771807
775204
788607
788798
791966
793781
795594
801760
802468
808080
808603
811782
813118
815263
816991
817223
817569
817825
817849
818588
]
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 (403660 , 404311 , 408299 , 408657 , 416165 , 421030 , 435931 , 446522 , 458712 , 464410 , 467303 , 477239 , 481665 , 486946 , 507521 , 509309 , 512381 , 513095 , 513953 , 521563 , 522525 , 532068 , 543777 , 553292 , 562598 , 566057 , 573304 , 578606 , 593757 , 602970 , 603425 , 606703 , 606759 , 616521 , 616559 , 622785 , 624139 , 626128 , 671688 , 730722 , 745827 , 752515 , 753461 , 755953 , 759464 , 769399 , 771807 , 775204 , 788607 , 788798 , 791966 , 793781 , 795594 , 801760 , 802468 , 808080 , 808603 , 811782 , 813118 , 815263 , 816991 , 817223 , 817569 , 817825 , 817849 , 818588 );
Copy