3
11.70 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
586002
431484
558377
435727
651512
640922
642426
743897
759537
807755
771830
588221
755332
762980
617921
483551
698853
615947
594282
596919
615627
758732
451259
744058
545539
536987
525091
543355
693612
612339
761464
721711
740107
776208
754179
821745
479277
532248
558373
719600
583666
596714
621410
583444
704156
603445
786461
619439
493298
532255
463867
520244
468705
728326
714578
529447
556423
619446
712276
439252
825781
709961
591748
560217
614993
519497
508891
]
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 (586002 , 431484 , 558377 , 435727 , 651512 , 640922 , 642426 , 743897 , 759537 , 807755 , 771830 , 588221 , 755332 , 762980 , 617921 , 483551 , 698853 , 615947 , 594282 , 596919 , 615627 , 758732 , 451259 , 744058 , 545539 , 536987 , 525091 , 543355 , 693612 , 612339 , 761464 , 721711 , 740107 , 776208 , 754179 , 821745 , 479277 , 532248 , 558373 , 719600 , 583666 , 596714 , 621410 , 583444 , 704156 , 603445 , 786461 , 619439 , 493298 , 532255 , 463867 , 520244 , 468705 , 728326 , 714578 , 529447 , 556423 , 619446 , 712276 , 439252 , 825781 , 709961 , 591748 , 560217 , 614993 , 519497 , 508891 );
Copy
4
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
431484
435727
439252
451259
463867
468705
479277
483551
493298
508891
519497
520244
525091
529447
532248
532255
536987
543355
545539
556423
558373
558377
560217
583444
583666
586002
588221
591748
594282
596714
596919
603445
612339
614993
615627
615947
617921
619439
619446
621410
640922
642426
651512
693612
698853
704156
709961
712276
714578
719600
721711
728326
740107
743897
744058
754179
755332
758732
759537
761464
762980
771830
776208
786461
807755
821745
825781
]
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 (431484 , 435727 , 439252 , 451259 , 463867 , 468705 , 479277 , 483551 , 493298 , 508891 , 519497 , 520244 , 525091 , 529447 , 532248 , 532255 , 536987 , 543355 , 545539 , 556423 , 558373 , 558377 , 560217 , 583444 , 583666 , 586002 , 588221 , 591748 , 594282 , 596714 , 596919 , 603445 , 612339 , 614993 , 615627 , 615947 , 617921 , 619439 , 619446 , 621410 , 640922 , 642426 , 651512 , 693612 , 698853 , 704156 , 709961 , 712276 , 714578 , 719600 , 721711 , 728326 , 740107 , 743897 , 744058 , 754179 , 755332 , 758732 , 759537 , 761464 , 762980 , 771830 , 776208 , 786461 , 807755 , 821745 , 825781 );
Copy
5
87.02 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
431484
435727
439252
451259
463867
468705
479277
483551
493298
508891
519497
520244
525091
529447
532248
532255
536987
543355
545539
556423
558373
558377
560217
583444
583666
586002
588221
591748
594282
596714
596919
603445
612339
614993
615627
615947
617921
619439
619446
621410
640922
642426
651512
693612
698853
704156
709961
712276
714578
719600
721711
728326
740107
743897
744058
754179
755332
758732
759537
761464
762980
771830
776208
786461
807755
821745
825781
]
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 (431484 , 435727 , 439252 , 451259 , 463867 , 468705 , 479277 , 483551 , 493298 , 508891 , 519497 , 520244 , 525091 , 529447 , 532248 , 532255 , 536987 , 543355 , 545539 , 556423 , 558373 , 558377 , 560217 , 583444 , 583666 , 586002 , 588221 , 591748 , 594282 , 596714 , 596919 , 603445 , 612339 , 614993 , 615627 , 615947 , 617921 , 619439 , 619446 , 621410 , 640922 , 642426 , 651512 , 693612 , 698853 , 704156 , 709961 , 712276 , 714578 , 719600 , 721711 , 728326 , 740107 , 743897 , 744058 , 754179 , 755332 , 758732 , 759537 , 761464 , 762980 , 771830 , 776208 , 786461 , 807755 , 821745 , 825781 );
Copy