3
11.75 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
723535
781584
800585
476822
531090
649578
534632
650158
649525
622253
793558
531123
760192
747392
683536
484799
782374
812618
729743
771976
755803
537275
815135
815071
815105
713127
609131
623097
532666
413104
396099
403028
743725
456880
472610
757142
555900
517668
812586
632249
552024
528102
647839
533198
809341
684226
721334
704212
515109
565916
523236
528715
477884
585142
622391
527059
514999
476944
683838
426592
647847
688050
562373
522760
522972
647333
532747
622398
]
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 (723535 , 781584 , 800585 , 476822 , 531090 , 649578 , 534632 , 650158 , 649525 , 622253 , 793558 , 531123 , 760192 , 747392 , 683536 , 484799 , 782374 , 812618 , 729743 , 771976 , 755803 , 537275 , 815135 , 815071 , 815105 , 713127 , 609131 , 623097 , 532666 , 413104 , 396099 , 403028 , 743725 , 456880 , 472610 , 757142 , 555900 , 517668 , 812586 , 632249 , 552024 , 528102 , 647839 , 533198 , 809341 , 684226 , 721334 , 704212 , 515109 , 565916 , 523236 , 528715 , 477884 , 585142 , 622391 , 527059 , 514999 , 476944 , 683838 , 426592 , 647847 , 688050 , 562373 , 522760 , 522972 , 647333 , 532747 , 622398 );
Copy
4
2.61 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
396099
403028
413104
426592
456880
472610
476822
476944
477884
484799
514999
515109
517668
522760
522972
523236
527059
528102
528715
531090
531123
532666
532747
533198
534632
537275
552024
555900
562373
565916
585142
609131
622253
622391
622398
632249
647333
647839
647847
649525
649578
650158
683536
683838
684226
688050
704212
713127
721334
723535
729743
743725
747392
755803
757142
760192
771976
781584
782374
793558
800585
809341
812586
812618
815071
815105
815135
]
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 (396099 , 403028 , 413104 , 426592 , 456880 , 472610 , 476822 , 476944 , 477884 , 484799 , 514999 , 515109 , 517668 , 522760 , 522972 , 523236 , 527059 , 528102 , 528715 , 531090 , 531123 , 532666 , 532747 , 533198 , 534632 , 537275 , 552024 , 555900 , 562373 , 565916 , 585142 , 609131 , 622253 , 622391 , 622398 , 632249 , 647333 , 647839 , 647847 , 649525 , 649578 , 650158 , 683536 , 683838 , 684226 , 688050 , 704212 , 713127 , 721334 , 723535 , 729743 , 743725 , 747392 , 755803 , 757142 , 760192 , 771976 , 781584 , 782374 , 793558 , 800585 , 809341 , 812586 , 812618 , 815071 , 815105 , 815135 );
Copy
5
107.60 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
396099
403028
413104
426592
456880
472610
476822
476944
477884
484799
514999
515109
517668
522760
522972
523236
527059
528102
528715
531090
531123
532666
532747
533198
534632
537275
552024
555900
562373
565916
585142
609131
622253
622391
622398
632249
647333
647839
647847
649525
649578
650158
683536
683838
684226
688050
704212
713127
721334
723535
729743
743725
747392
755803
757142
760192
771976
781584
782374
793558
800585
809341
812586
812618
815071
815105
815135
]
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 (396099 , 403028 , 413104 , 426592 , 456880 , 472610 , 476822 , 476944 , 477884 , 484799 , 514999 , 515109 , 517668 , 522760 , 522972 , 523236 , 527059 , 528102 , 528715 , 531090 , 531123 , 532666 , 532747 , 533198 , 534632 , 537275 , 552024 , 555900 , 562373 , 565916 , 585142 , 609131 , 622253 , 622391 , 622398 , 632249 , 647333 , 647839 , 647847 , 649525 , 649578 , 650158 , 683536 , 683838 , 684226 , 688050 , 704212 , 713127 , 721334 , 723535 , 729743 , 743725 , 747392 , 755803 , 757142 , 760192 , 771976 , 781584 , 782374 , 793558 , 800585 , 809341 , 812586 , 812618 , 815071 , 815105 , 815135 );
Copy