3
11.08 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
442634
825243
516468
452446
663989
577192
802326
163762
695283
667486
498697
667294
472655
666766
667578
663977
472151
669418
485727
447705
485754
665229
665357
665864
666093
666796
806311
618513
454231
506817
485208
474813
664823
592900
398769
665288
487937
591013
500467
488377
450117
551932
667288
748253
496347
472697
615631
466903
506051
518842
476240
565578
477707
624468
568325
454277
524895
663956
559324
651891
563431
485700
598979
495038
475080
516053
558286
549239
]
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 (442634 , 825243 , 516468 , 452446 , 663989 , 577192 , 802326 , 163762 , 695283 , 667486 , 498697 , 667294 , 472655 , 666766 , 667578 , 663977 , 472151 , 669418 , 485727 , 447705 , 485754 , 665229 , 665357 , 665864 , 666093 , 666796 , 806311 , 618513 , 454231 , 506817 , 485208 , 474813 , 664823 , 592900 , 398769 , 665288 , 487937 , 591013 , 500467 , 488377 , 450117 , 551932 , 667288 , 748253 , 496347 , 472697 , 615631 , 466903 , 506051 , 518842 , 476240 , 565578 , 477707 , 624468 , 568325 , 454277 , 524895 , 663956 , 559324 , 651891 , 563431 , 485700 , 598979 , 495038 , 475080 , 516053 , 558286 , 549239 );
Copy
4
2.42 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
163762
398769
442634
447705
450117
452446
454231
454277
466903
472151
472655
472697
474813
475080
476240
477707
485208
485700
485727
485754
487937
488377
495038
496347
498697
500467
506051
506817
516053
516468
518842
524895
549239
551932
558286
559324
563431
565578
568325
577192
591013
592900
598979
615631
618513
624468
651891
663956
663977
663989
664823
665229
665288
665357
665864
666093
666766
666796
667288
667294
667486
667578
669418
695283
748253
802326
806311
825243
]
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 (163762 , 398769 , 442634 , 447705 , 450117 , 452446 , 454231 , 454277 , 466903 , 472151 , 472655 , 472697 , 474813 , 475080 , 476240 , 477707 , 485208 , 485700 , 485727 , 485754 , 487937 , 488377 , 495038 , 496347 , 498697 , 500467 , 506051 , 506817 , 516053 , 516468 , 518842 , 524895 , 549239 , 551932 , 558286 , 559324 , 563431 , 565578 , 568325 , 577192 , 591013 , 592900 , 598979 , 615631 , 618513 , 624468 , 651891 , 663956 , 663977 , 663989 , 664823 , 665229 , 665288 , 665357 , 665864 , 666093 , 666766 , 666796 , 667288 , 667294 , 667486 , 667578 , 669418 , 695283 , 748253 , 802326 , 806311 , 825243 );
Copy
5
90.81 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
163762
398769
442634
447705
450117
452446
454231
454277
466903
472151
472655
472697
474813
475080
476240
477707
485208
485700
485727
485754
487937
488377
495038
496347
498697
500467
506051
506817
516053
516468
518842
524895
549239
551932
558286
559324
563431
565578
568325
577192
591013
592900
598979
615631
618513
624468
651891
663956
663977
663989
664823
665229
665288
665357
665864
666093
666766
666796
667288
667294
667486
667578
669418
695283
748253
802326
806311
825243
]
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 (163762 , 398769 , 442634 , 447705 , 450117 , 452446 , 454231 , 454277 , 466903 , 472151 , 472655 , 472697 , 474813 , 475080 , 476240 , 477707 , 485208 , 485700 , 485727 , 485754 , 487937 , 488377 , 495038 , 496347 , 498697 , 500467 , 506051 , 506817 , 516053 , 516468 , 518842 , 524895 , 549239 , 551932 , 558286 , 559324 , 563431 , 565578 , 568325 , 577192 , 591013 , 592900 , 598979 , 615631 , 618513 , 624468 , 651891 , 663956 , 663977 , 663989 , 664823 , 665229 , 665288 , 665357 , 665864 , 666093 , 666766 , 666796 , 667288 , 667294 , 667486 , 667578 , 669418 , 695283 , 748253 , 802326 , 806311 , 825243 );
Copy