3
15.25 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
814784
472767
457779
540484
532079
566694
672804
566081
602971
775819
472792
465793
391262
424695
428142
495326
409774
435942
447490
484165
534204
511561
568762
558984
659215
640022
621658
643523
445706
454293
473807
504700
457987
486792
472793
467043
582789
591312
701010
389208
439649
469030
492760
462535
634482
634484
513338
485541
523317
526948
467009
500904
581112
647932
476797
401919
432751
482527
524879
523183
623380
588265
514689
486569
591314
597240
]
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 (814784 , 472767 , 457779 , 540484 , 532079 , 566694 , 672804 , 566081 , 602971 , 775819 , 472792 , 465793 , 391262 , 424695 , 428142 , 495326 , 409774 , 435942 , 447490 , 484165 , 534204 , 511561 , 568762 , 558984 , 659215 , 640022 , 621658 , 643523 , 445706 , 454293 , 473807 , 504700 , 457987 , 486792 , 472793 , 467043 , 582789 , 591312 , 701010 , 389208 , 439649 , 469030 , 492760 , 462535 , 634482 , 634484 , 513338 , 485541 , 523317 , 526948 , 467009 , 500904 , 581112 , 647932 , 476797 , 401919 , 432751 , 482527 , 524879 , 523183 , 623380 , 588265 , 514689 , 486569 , 591314 , 597240 );
Copy
4
2.61 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
389208
391262
401919
409774
424695
428142
432751
435942
439649
445706
447490
454293
457779
457987
462535
465793
467009
467043
469030
472767
472792
472793
473807
476797
482527
484165
485541
486569
486792
492760
495326
500904
504700
511561
513338
514689
523183
523317
524879
526948
532079
534204
540484
558984
566081
566694
568762
581112
582789
588265
591312
591314
597240
602971
621658
623380
634482
634484
640022
643523
647932
659215
672804
701010
775819
814784
]
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 (389208 , 391262 , 401919 , 409774 , 424695 , 428142 , 432751 , 435942 , 439649 , 445706 , 447490 , 454293 , 457779 , 457987 , 462535 , 465793 , 467009 , 467043 , 469030 , 472767 , 472792 , 472793 , 473807 , 476797 , 482527 , 484165 , 485541 , 486569 , 486792 , 492760 , 495326 , 500904 , 504700 , 511561 , 513338 , 514689 , 523183 , 523317 , 524879 , 526948 , 532079 , 534204 , 540484 , 558984 , 566081 , 566694 , 568762 , 581112 , 582789 , 588265 , 591312 , 591314 , 597240 , 602971 , 621658 , 623380 , 634482 , 634484 , 640022 , 643523 , 647932 , 659215 , 672804 , 701010 , 775819 , 814784 );
Copy
5
73.26 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
389208
391262
401919
409774
424695
428142
432751
435942
439649
445706
447490
454293
457779
457987
462535
465793
467009
467043
469030
472767
472792
472793
473807
476797
482527
484165
485541
486569
486792
492760
495326
500904
504700
511561
513338
514689
523183
523317
524879
526948
532079
534204
540484
558984
566081
566694
568762
581112
582789
588265
591312
591314
597240
602971
621658
623380
634482
634484
640022
643523
647932
659215
672804
701010
775819
814784
]
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 (389208 , 391262 , 401919 , 409774 , 424695 , 428142 , 432751 , 435942 , 439649 , 445706 , 447490 , 454293 , 457779 , 457987 , 462535 , 465793 , 467009 , 467043 , 469030 , 472767 , 472792 , 472793 , 473807 , 476797 , 482527 , 484165 , 485541 , 486569 , 486792 , 492760 , 495326 , 500904 , 504700 , 511561 , 513338 , 514689 , 523183 , 523317 , 524879 , 526948 , 532079 , 534204 , 540484 , 558984 , 566081 , 566694 , 568762 , 581112 , 582789 , 588265 , 591312 , 591314 , 597240 , 602971 , 621658 , 623380 , 634482 , 634484 , 640022 , 643523 , 647932 , 659215 , 672804 , 701010 , 775819 , 814784 );
Copy