3
9.50 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
744138
722433
819273
691558
801818
783170
83083
403850
671559
589545
788337
810917
765090
500032
713977
676995
783290
710851
438503
551589
706720
678697
698156
620825
810180
426897
553708
722216
778498
784732
787370
438465
441556
450076
450074
588464
803520
448894
423324
494068
551623
639133
587212
781354
785610
435798
399909
471672
457966
514731
442855
457054
487633
580791
585788
601679
452548
461787
521481
450071
469027
518008
447315
]
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 (744138 , 722433 , 819273 , 691558 , 801818 , 783170 , 83083 , 403850 , 671559 , 589545 , 788337 , 810917 , 765090 , 500032 , 713977 , 676995 , 783290 , 710851 , 438503 , 551589 , 706720 , 678697 , 698156 , 620825 , 810180 , 426897 , 553708 , 722216 , 778498 , 784732 , 787370 , 438465 , 441556 , 450076 , 450074 , 588464 , 803520 , 448894 , 423324 , 494068 , 551623 , 639133 , 587212 , 781354 , 785610 , 435798 , 399909 , 471672 , 457966 , 514731 , 442855 , 457054 , 487633 , 580791 , 585788 , 601679 , 452548 , 461787 , 521481 , 450071 , 469027 , 518008 , 447315 );
Copy
4
3.15 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
83083
399909
403850
423324
426897
435798
438465
438503
441556
442855
447315
448894
450071
450074
450076
452548
457054
457966
461787
469027
471672
487633
494068
500032
514731
518008
521481
551589
551623
553708
580791
585788
587212
588464
589545
601679
620825
639133
671559
676995
678697
691558
698156
706720
710851
713977
722216
722433
744138
765090
778498
781354
783170
783290
784732
785610
787370
788337
801818
803520
810180
810917
819273
]
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 (83083 , 399909 , 403850 , 423324 , 426897 , 435798 , 438465 , 438503 , 441556 , 442855 , 447315 , 448894 , 450071 , 450074 , 450076 , 452548 , 457054 , 457966 , 461787 , 469027 , 471672 , 487633 , 494068 , 500032 , 514731 , 518008 , 521481 , 551589 , 551623 , 553708 , 580791 , 585788 , 587212 , 588464 , 589545 , 601679 , 620825 , 639133 , 671559 , 676995 , 678697 , 691558 , 698156 , 706720 , 710851 , 713977 , 722216 , 722433 , 744138 , 765090 , 778498 , 781354 , 783170 , 783290 , 784732 , 785610 , 787370 , 788337 , 801818 , 803520 , 810180 , 810917 , 819273 );
Copy
5
108.73 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
83083
399909
403850
423324
426897
435798
438465
438503
441556
442855
447315
448894
450071
450074
450076
452548
457054
457966
461787
469027
471672
487633
494068
500032
514731
518008
521481
551589
551623
553708
580791
585788
587212
588464
589545
601679
620825
639133
671559
676995
678697
691558
698156
706720
710851
713977
722216
722433
744138
765090
778498
781354
783170
783290
784732
785610
787370
788337
801818
803520
810180
810917
819273
]
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 (83083 , 399909 , 403850 , 423324 , 426897 , 435798 , 438465 , 438503 , 441556 , 442855 , 447315 , 448894 , 450071 , 450074 , 450076 , 452548 , 457054 , 457966 , 461787 , 469027 , 471672 , 487633 , 494068 , 500032 , 514731 , 518008 , 521481 , 551589 , 551623 , 553708 , 580791 , 585788 , 587212 , 588464 , 589545 , 601679 , 620825 , 639133 , 671559 , 676995 , 678697 , 691558 , 698156 , 706720 , 710851 , 713977 , 722216 , 722433 , 744138 , 765090 , 778498 , 781354 , 783170 , 783290 , 784732 , 785610 , 787370 , 788337 , 801818 , 803520 , 810180 , 810917 , 819273 );
Copy