3
13.06 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
568301
529216
539319
815119
497030
514020
531180
542213
545416
551650
680149
722821
582342
599556
637026
603937
388100
470256
438367
460208
472114
523333
516051
485083
464306
650851
500971
410352
467195
481157
533517
506823
533697
612726
613508
760794
429759
520576
515969
519086
611984
530384
577699
716892
430081
393715
428315
561321
680182
599610
637086
627814
661565
485149
525731
637049
461862
563595
593921
544472
576008
475443
522878
]
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 (568301 , 529216 , 539319 , 815119 , 497030 , 514020 , 531180 , 542213 , 545416 , 551650 , 680149 , 722821 , 582342 , 599556 , 637026 , 603937 , 388100 , 470256 , 438367 , 460208 , 472114 , 523333 , 516051 , 485083 , 464306 , 650851 , 500971 , 410352 , 467195 , 481157 , 533517 , 506823 , 533697 , 612726 , 613508 , 760794 , 429759 , 520576 , 515969 , 519086 , 611984 , 530384 , 577699 , 716892 , 430081 , 393715 , 428315 , 561321 , 680182 , 599610 , 637086 , 627814 , 661565 , 485149 , 525731 , 637049 , 461862 , 563595 , 593921 , 544472 , 576008 , 475443 , 522878 );
Copy
4
2.29 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
388100
393715
410352
428315
429759
430081
438367
460208
461862
464306
467195
470256
472114
475443
481157
485083
485149
497030
500971
506823
514020
515969
516051
519086
520576
522878
523333
525731
529216
530384
531180
533517
533697
539319
542213
544472
545416
551650
561321
563595
568301
576008
577699
582342
593921
599556
599610
603937
611984
612726
613508
627814
637026
637049
637086
650851
661565
680149
680182
716892
722821
760794
815119
]
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 (388100 , 393715 , 410352 , 428315 , 429759 , 430081 , 438367 , 460208 , 461862 , 464306 , 467195 , 470256 , 472114 , 475443 , 481157 , 485083 , 485149 , 497030 , 500971 , 506823 , 514020 , 515969 , 516051 , 519086 , 520576 , 522878 , 523333 , 525731 , 529216 , 530384 , 531180 , 533517 , 533697 , 539319 , 542213 , 544472 , 545416 , 551650 , 561321 , 563595 , 568301 , 576008 , 577699 , 582342 , 593921 , 599556 , 599610 , 603937 , 611984 , 612726 , 613508 , 627814 , 637026 , 637049 , 637086 , 650851 , 661565 , 680149 , 680182 , 716892 , 722821 , 760794 , 815119 );
Copy
5
111.75 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
388100
393715
410352
428315
429759
430081
438367
460208
461862
464306
467195
470256
472114
475443
481157
485083
485149
497030
500971
506823
514020
515969
516051
519086
520576
522878
523333
525731
529216
530384
531180
533517
533697
539319
542213
544472
545416
551650
561321
563595
568301
576008
577699
582342
593921
599556
599610
603937
611984
612726
613508
627814
637026
637049
637086
650851
661565
680149
680182
716892
722821
760794
815119
]
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 (388100 , 393715 , 410352 , 428315 , 429759 , 430081 , 438367 , 460208 , 461862 , 464306 , 467195 , 470256 , 472114 , 475443 , 481157 , 485083 , 485149 , 497030 , 500971 , 506823 , 514020 , 515969 , 516051 , 519086 , 520576 , 522878 , 523333 , 525731 , 529216 , 530384 , 531180 , 533517 , 533697 , 539319 , 542213 , 544472 , 545416 , 551650 , 561321 , 563595 , 568301 , 576008 , 577699 , 582342 , 593921 , 599556 , 599610 , 603937 , 611984 , 612726 , 613508 , 627814 , 637026 , 637049 , 637086 , 650851 , 661565 , 680149 , 680182 , 716892 , 722821 , 760794 , 815119 );
Copy