3
10.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
530333
540086
570804
549259
671569
681322
733367
533211
549325
544359
552016
674117
562398
527664
797616
738770
475080
452418
464936
384455
537857
676342
549964
598837
608363
503920
454206
475914
544305
565977
620163
602946
621091
430303
484973
501477
549300
716765
558994
621648
759691
433672
485147
457735
502274
500600
549362
557499
572537
475918
460751
464303
510758
541833
480752
525484
576678
545785
585961
602647
628175
634212
478978
469017
501226
413475
564923
807191
534934
656499
729223
457775
586601
583819
522911
]
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 (530333 , 540086 , 570804 , 549259 , 671569 , 681322 , 733367 , 533211 , 549325 , 544359 , 552016 , 674117 , 562398 , 527664 , 797616 , 738770 , 475080 , 452418 , 464936 , 384455 , 537857 , 676342 , 549964 , 598837 , 608363 , 503920 , 454206 , 475914 , 544305 , 565977 , 620163 , 602946 , 621091 , 430303 , 484973 , 501477 , 549300 , 716765 , 558994 , 621648 , 759691 , 433672 , 485147 , 457735 , 502274 , 500600 , 549362 , 557499 , 572537 , 475918 , 460751 , 464303 , 510758 , 541833 , 480752 , 525484 , 576678 , 545785 , 585961 , 602647 , 628175 , 634212 , 478978 , 469017 , 501226 , 413475 , 564923 , 807191 , 534934 , 656499 , 729223 , 457775 , 586601 , 583819 , 522911 );
Copy
4
2.84 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
384455
413475
430303
433672
452418
454206
457735
457775
460751
464303
464936
469017
475080
475914
475918
478978
480752
484973
485147
500600
501226
501477
502274
503920
510758
522911
525484
527664
530333
533211
534934
537857
540086
541833
544305
544359
545785
549259
549300
549325
549362
549964
552016
557499
558994
562398
564923
565977
570804
572537
576678
583819
585961
586601
598837
602647
602946
608363
620163
621091
621648
628175
634212
656499
671569
674117
676342
681322
716765
729223
733367
738770
759691
797616
807191
]
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 (384455 , 413475 , 430303 , 433672 , 452418 , 454206 , 457735 , 457775 , 460751 , 464303 , 464936 , 469017 , 475080 , 475914 , 475918 , 478978 , 480752 , 484973 , 485147 , 500600 , 501226 , 501477 , 502274 , 503920 , 510758 , 522911 , 525484 , 527664 , 530333 , 533211 , 534934 , 537857 , 540086 , 541833 , 544305 , 544359 , 545785 , 549259 , 549300 , 549325 , 549362 , 549964 , 552016 , 557499 , 558994 , 562398 , 564923 , 565977 , 570804 , 572537 , 576678 , 583819 , 585961 , 586601 , 598837 , 602647 , 602946 , 608363 , 620163 , 621091 , 621648 , 628175 , 634212 , 656499 , 671569 , 674117 , 676342 , 681322 , 716765 , 729223 , 733367 , 738770 , 759691 , 797616 , 807191 );
Copy
5
111.42 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
384455
413475
430303
433672
452418
454206
457735
457775
460751
464303
464936
469017
475080
475914
475918
478978
480752
484973
485147
500600
501226
501477
502274
503920
510758
522911
525484
527664
530333
533211
534934
537857
540086
541833
544305
544359
545785
549259
549300
549325
549362
549964
552016
557499
558994
562398
564923
565977
570804
572537
576678
583819
585961
586601
598837
602647
602946
608363
620163
621091
621648
628175
634212
656499
671569
674117
676342
681322
716765
729223
733367
738770
759691
797616
807191
]
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 (384455 , 413475 , 430303 , 433672 , 452418 , 454206 , 457735 , 457775 , 460751 , 464303 , 464936 , 469017 , 475080 , 475914 , 475918 , 478978 , 480752 , 484973 , 485147 , 500600 , 501226 , 501477 , 502274 , 503920 , 510758 , 522911 , 525484 , 527664 , 530333 , 533211 , 534934 , 537857 , 540086 , 541833 , 544305 , 544359 , 545785 , 549259 , 549300 , 549325 , 549362 , 549964 , 552016 , 557499 , 558994 , 562398 , 564923 , 565977 , 570804 , 572537 , 576678 , 583819 , 585961 , 586601 , 598837 , 602647 , 602946 , 608363 , 620163 , 621091 , 621648 , 628175 , 634212 , 656499 , 671569 , 674117 , 676342 , 681322 , 716765 , 729223 , 733367 , 738770 , 759691 , 797616 , 807191 );
Copy