3
13.41 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
473368
555026
576444
669030
672939
687437
705005
665796
713505
554997
556872
587851
592362
780650
780642
796843
796833
445413
455015
505590
495467
529739
510798
510812
556877
418697
416029
443146
475646
515488
536475
462495
475647
556882
555024
669007
574458
761429
742279
616292
441644
456236
450599
483711
501440
490741
536413
578724
423998
477021
515053
508895
514863
519697
475649
669269
669012
718782
439059
536471
443218
555023
656925
619703
536459
432936
473203
481904
619102
536466
510815
512928
]
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 (473368 , 555026 , 576444 , 669030 , 672939 , 687437 , 705005 , 665796 , 713505 , 554997 , 556872 , 587851 , 592362 , 780650 , 780642 , 796843 , 796833 , 445413 , 455015 , 505590 , 495467 , 529739 , 510798 , 510812 , 556877 , 418697 , 416029 , 443146 , 475646 , 515488 , 536475 , 462495 , 475647 , 556882 , 555024 , 669007 , 574458 , 761429 , 742279 , 616292 , 441644 , 456236 , 450599 , 483711 , 501440 , 490741 , 536413 , 578724 , 423998 , 477021 , 515053 , 508895 , 514863 , 519697 , 475649 , 669269 , 669012 , 718782 , 439059 , 536471 , 443218 , 555023 , 656925 , 619703 , 536459 , 432936 , 473203 , 481904 , 619102 , 536466 , 510815 , 512928 );
Copy
4
2.33 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
416029
418697
423998
432936
439059
441644
443146
443218
445413
450599
455015
456236
462495
473203
473368
475646
475647
475649
477021
481904
483711
490741
495467
501440
505590
508895
510798
510812
510815
512928
514863
515053
515488
519697
529739
536413
536459
536466
536471
536475
554997
555023
555024
555026
556872
556877
556882
574458
576444
578724
587851
592362
616292
619102
619703
656925
665796
669007
669012
669030
669269
672939
687437
705005
713505
718782
742279
761429
780642
780650
796833
796843
]
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 (416029 , 418697 , 423998 , 432936 , 439059 , 441644 , 443146 , 443218 , 445413 , 450599 , 455015 , 456236 , 462495 , 473203 , 473368 , 475646 , 475647 , 475649 , 477021 , 481904 , 483711 , 490741 , 495467 , 501440 , 505590 , 508895 , 510798 , 510812 , 510815 , 512928 , 514863 , 515053 , 515488 , 519697 , 529739 , 536413 , 536459 , 536466 , 536471 , 536475 , 554997 , 555023 , 555024 , 555026 , 556872 , 556877 , 556882 , 574458 , 576444 , 578724 , 587851 , 592362 , 616292 , 619102 , 619703 , 656925 , 665796 , 669007 , 669012 , 669030 , 669269 , 672939 , 687437 , 705005 , 713505 , 718782 , 742279 , 761429 , 780642 , 780650 , 796833 , 796843 );
Copy
5
105.18 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
416029
418697
423998
432936
439059
441644
443146
443218
445413
450599
455015
456236
462495
473203
473368
475646
475647
475649
477021
481904
483711
490741
495467
501440
505590
508895
510798
510812
510815
512928
514863
515053
515488
519697
529739
536413
536459
536466
536471
536475
554997
555023
555024
555026
556872
556877
556882
574458
576444
578724
587851
592362
616292
619102
619703
656925
665796
669007
669012
669030
669269
672939
687437
705005
713505
718782
742279
761429
780642
780650
796833
796843
]
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 (416029 , 418697 , 423998 , 432936 , 439059 , 441644 , 443146 , 443218 , 445413 , 450599 , 455015 , 456236 , 462495 , 473203 , 473368 , 475646 , 475647 , 475649 , 477021 , 481904 , 483711 , 490741 , 495467 , 501440 , 505590 , 508895 , 510798 , 510812 , 510815 , 512928 , 514863 , 515053 , 515488 , 519697 , 529739 , 536413 , 536459 , 536466 , 536471 , 536475 , 554997 , 555023 , 555024 , 555026 , 556872 , 556877 , 556882 , 574458 , 576444 , 578724 , 587851 , 592362 , 616292 , 619102 , 619703 , 656925 , 665796 , 669007 , 669012 , 669030 , 669269 , 672939 , 687437 , 705005 , 713505 , 718782 , 742279 , 761429 , 780642 , 780650 , 796833 , 796843 );
Copy