3
12.64 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
481718
567307
465905
459278
791294
365872
801776
398423
485835
666708
416889
456416
27777
484549
721881
804408
788112
760860
462544
229010
625474
601640
506868
488896
546340
364718
490541
522483
594622
479549
496321
546439
626905
465945
467953
567235
474972
538119
564024
443114
496295
485556
382105
445009
505189
521933
484076
423928
506538
543766
565395
578386
470233
412332
480705
528139
442626
467735
563332
579746
496327
540694
478707
415807
471307
557595
559120
569901
458775
521818
]
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 (481718 , 567307 , 465905 , 459278 , 791294 , 365872 , 801776 , 398423 , 485835 , 666708 , 416889 , 456416 , 27777 , 484549 , 721881 , 804408 , 788112 , 760860 , 462544 , 229010 , 625474 , 601640 , 506868 , 488896 , 546340 , 364718 , 490541 , 522483 , 594622 , 479549 , 496321 , 546439 , 626905 , 465945 , 467953 , 567235 , 474972 , 538119 , 564024 , 443114 , 496295 , 485556 , 382105 , 445009 , 505189 , 521933 , 484076 , 423928 , 506538 , 543766 , 565395 , 578386 , 470233 , 412332 , 480705 , 528139 , 442626 , 467735 , 563332 , 579746 , 496327 , 540694 , 478707 , 415807 , 471307 , 557595 , 559120 , 569901 , 458775 , 521818 );
Copy
4
2.63 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
27777
229010
364718
365872
382105
398423
412332
415807
416889
423928
442626
443114
445009
456416
458775
459278
462544
465905
465945
467735
467953
470233
471307
474972
478707
479549
480705
481718
484076
484549
485556
485835
488896
490541
496295
496321
496327
505189
506538
506868
521818
521933
522483
528139
538119
540694
543766
546340
546439
557595
559120
563332
564024
565395
567235
567307
569901
578386
579746
594622
601640
625474
626905
666708
721881
760860
788112
791294
801776
804408
]
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 (27777 , 229010 , 364718 , 365872 , 382105 , 398423 , 412332 , 415807 , 416889 , 423928 , 442626 , 443114 , 445009 , 456416 , 458775 , 459278 , 462544 , 465905 , 465945 , 467735 , 467953 , 470233 , 471307 , 474972 , 478707 , 479549 , 480705 , 481718 , 484076 , 484549 , 485556 , 485835 , 488896 , 490541 , 496295 , 496321 , 496327 , 505189 , 506538 , 506868 , 521818 , 521933 , 522483 , 528139 , 538119 , 540694 , 543766 , 546340 , 546439 , 557595 , 559120 , 563332 , 564024 , 565395 , 567235 , 567307 , 569901 , 578386 , 579746 , 594622 , 601640 , 625474 , 626905 , 666708 , 721881 , 760860 , 788112 , 791294 , 801776 , 804408 );
Copy
5
117.09 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
27777
229010
364718
365872
382105
398423
412332
415807
416889
423928
442626
443114
445009
456416
458775
459278
462544
465905
465945
467735
467953
470233
471307
474972
478707
479549
480705
481718
484076
484549
485556
485835
488896
490541
496295
496321
496327
505189
506538
506868
521818
521933
522483
528139
538119
540694
543766
546340
546439
557595
559120
563332
564024
565395
567235
567307
569901
578386
579746
594622
601640
625474
626905
666708
721881
760860
788112
791294
801776
804408
]
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 (27777 , 229010 , 364718 , 365872 , 382105 , 398423 , 412332 , 415807 , 416889 , 423928 , 442626 , 443114 , 445009 , 456416 , 458775 , 459278 , 462544 , 465905 , 465945 , 467735 , 467953 , 470233 , 471307 , 474972 , 478707 , 479549 , 480705 , 481718 , 484076 , 484549 , 485556 , 485835 , 488896 , 490541 , 496295 , 496321 , 496327 , 505189 , 506538 , 506868 , 521818 , 521933 , 522483 , 528139 , 538119 , 540694 , 543766 , 546340 , 546439 , 557595 , 559120 , 563332 , 564024 , 565395 , 567235 , 567307 , 569901 , 578386 , 579746 , 594622 , 601640 , 625474 , 626905 , 666708 , 721881 , 760860 , 788112 , 791294 , 801776 , 804408 );
Copy