3
9.22 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
781160
805656
681375
781149
795467
662180
681701
601019
643690
626793
643810
791393
805609
781154
795566
659100
713313
713371
643786
626996
802147
713467
713398
801117
713464
781155
643791
713473
666966
677339
662394
677344
681203
626691
802142
805610
725536
611760
781063
662469
643541
801251
725522
749868
766337
795469
677363
725477
725416
480103
648703
681237
611517
812697
677681
662454
725514
749925
697457
612121
644056
681539
744360
]
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 (781160 , 805656 , 681375 , 781149 , 795467 , 662180 , 681701 , 601019 , 643690 , 626793 , 643810 , 791393 , 805609 , 781154 , 795566 , 659100 , 713313 , 713371 , 643786 , 626996 , 802147 , 713467 , 713398 , 801117 , 713464 , 781155 , 643791 , 713473 , 666966 , 677339 , 662394 , 677344 , 681203 , 626691 , 802142 , 805610 , 725536 , 611760 , 781063 , 662469 , 643541 , 801251 , 725522 , 749868 , 766337 , 795469 , 677363 , 725477 , 725416 , 480103 , 648703 , 681237 , 611517 , 812697 , 677681 , 662454 , 725514 , 749925 , 697457 , 612121 , 644056 , 681539 , 744360 );
Copy
4
2.94 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
480103
601019
611517
611760
612121
626691
626793
626996
643541
643690
643786
643791
643810
644056
648703
659100
662180
662394
662454
662469
666966
677339
677344
677363
677681
681203
681237
681375
681539
681701
697457
713313
713371
713398
713464
713467
713473
725416
725477
725514
725522
725536
744360
749868
749925
766337
781063
781149
781154
781155
781160
791393
795467
795469
795566
801117
801251
802142
802147
805609
805610
805656
812697
]
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 (480103 , 601019 , 611517 , 611760 , 612121 , 626691 , 626793 , 626996 , 643541 , 643690 , 643786 , 643791 , 643810 , 644056 , 648703 , 659100 , 662180 , 662394 , 662454 , 662469 , 666966 , 677339 , 677344 , 677363 , 677681 , 681203 , 681237 , 681375 , 681539 , 681701 , 697457 , 713313 , 713371 , 713398 , 713464 , 713467 , 713473 , 725416 , 725477 , 725514 , 725522 , 725536 , 744360 , 749868 , 749925 , 766337 , 781063 , 781149 , 781154 , 781155 , 781160 , 791393 , 795467 , 795469 , 795566 , 801117 , 801251 , 802142 , 802147 , 805609 , 805610 , 805656 , 812697 );
Copy
5
78.66 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
480103
601019
611517
611760
612121
626691
626793
626996
643541
643690
643786
643791
643810
644056
648703
659100
662180
662394
662454
662469
666966
677339
677344
677363
677681
681203
681237
681375
681539
681701
697457
713313
713371
713398
713464
713467
713473
725416
725477
725514
725522
725536
744360
749868
749925
766337
781063
781149
781154
781155
781160
791393
795467
795469
795566
801117
801251
802142
802147
805609
805610
805656
812697
]
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 (480103 , 601019 , 611517 , 611760 , 612121 , 626691 , 626793 , 626996 , 643541 , 643690 , 643786 , 643791 , 643810 , 644056 , 648703 , 659100 , 662180 , 662394 , 662454 , 662469 , 666966 , 677339 , 677344 , 677363 , 677681 , 681203 , 681237 , 681375 , 681539 , 681701 , 697457 , 713313 , 713371 , 713398 , 713464 , 713467 , 713473 , 725416 , 725477 , 725514 , 725522 , 725536 , 744360 , 749868 , 749925 , 766337 , 781063 , 781149 , 781154 , 781155 , 781160 , 791393 , 795467 , 795469 , 795566 , 801117 , 801251 , 802142 , 802147 , 805609 , 805610 , 805656 , 812697 );
Copy