4
11.19 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
621378
769988
533383
799254
759881
759844
721303
811158
744572
769743
808072
814932
815032
526782
683924
730724
659398
662548
505038
566714
564860
677287
722894
519958
642665
510466
564717
631170
635188
532913
429449
824375
533007
311520
531117
526553
634649
533966
820802
820618
800874
822559
822725
812343
730381
770946
812355
419135
412506
767175
504567
459261
508378
521072
400951
487024
510078
516059
561291
634787
644373
476399
515138
519157
451796
]
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 (621378 , 769988 , 533383 , 799254 , 759881 , 759844 , 721303 , 811158 , 744572 , 769743 , 808072 , 814932 , 815032 , 526782 , 683924 , 730724 , 659398 , 662548 , 505038 , 566714 , 564860 , 677287 , 722894 , 519958 , 642665 , 510466 , 564717 , 631170 , 635188 , 532913 , 429449 , 824375 , 533007 , 311520 , 531117 , 526553 , 634649 , 533966 , 820802 , 820618 , 800874 , 822559 , 822725 , 812343 , 730381 , 770946 , 812355 , 419135 , 412506 , 767175 , 504567 , 459261 , 508378 , 521072 , 400951 , 487024 , 510078 , 516059 , 561291 , 634787 , 644373 , 476399 , 515138 , 519157 , 451796 );
Copy
5
2.64 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
311520
400951
412506
419135
429449
451796
459261
476399
487024
504567
505038
508378
510078
510466
515138
516059
519157
519958
521072
526553
526782
531117
532913
533007
533383
533966
561291
564717
564860
566714
621378
631170
634649
634787
635188
642665
644373
659398
662548
677287
683924
721303
722894
730381
730724
744572
759844
759881
767175
769743
769988
770946
799254
800874
808072
811158
812343
812355
814932
815032
820618
820802
822559
822725
824375
]
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 (311520 , 400951 , 412506 , 419135 , 429449 , 451796 , 459261 , 476399 , 487024 , 504567 , 505038 , 508378 , 510078 , 510466 , 515138 , 516059 , 519157 , 519958 , 521072 , 526553 , 526782 , 531117 , 532913 , 533007 , 533383 , 533966 , 561291 , 564717 , 564860 , 566714 , 621378 , 631170 , 634649 , 634787 , 635188 , 642665 , 644373 , 659398 , 662548 , 677287 , 683924 , 721303 , 722894 , 730381 , 730724 , 744572 , 759844 , 759881 , 767175 , 769743 , 769988 , 770946 , 799254 , 800874 , 808072 , 811158 , 812343 , 812355 , 814932 , 815032 , 820618 , 820802 , 822559 , 822725 , 824375 );
Copy
6
72.62 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
311520
400951
412506
419135
429449
451796
459261
476399
487024
504567
505038
508378
510078
510466
515138
516059
519157
519958
521072
526553
526782
531117
532913
533007
533383
533966
561291
564717
564860
566714
621378
631170
634649
634787
635188
642665
644373
659398
662548
677287
683924
721303
722894
730381
730724
744572
759844
759881
767175
769743
769988
770946
799254
800874
808072
811158
812343
812355
814932
815032
820618
820802
822559
822725
824375
]
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 (311520 , 400951 , 412506 , 419135 , 429449 , 451796 , 459261 , 476399 , 487024 , 504567 , 505038 , 508378 , 510078 , 510466 , 515138 , 516059 , 519157 , 519958 , 521072 , 526553 , 526782 , 531117 , 532913 , 533007 , 533383 , 533966 , 561291 , 564717 , 564860 , 566714 , 621378 , 631170 , 634649 , 634787 , 635188 , 642665 , 644373 , 659398 , 662548 , 677287 , 683924 , 721303 , 722894 , 730381 , 730724 , 744572 , 759844 , 759881 , 767175 , 769743 , 769988 , 770946 , 799254 , 800874 , 808072 , 811158 , 812343 , 812355 , 814932 , 815032 , 820618 , 820802 , 822559 , 822725 , 824375 );
Copy