4
14.78 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
788050
747969
602084
784121
812738
496144
562153
406095
426876
441222
431515
438605
451028
504594
514810
568568
580366
650518
661421
668699
666464
672305
716526
577145
585261
784629
786082
724183
608670
615710
791634
437385
447060
435601
430948
435607
505581
595037
435606
456037
463603
520829
518326
581478
720503
674132
662093
696802
564309
611005
595042
622290
802905
724931
447138
447821
500222
437389
446413
522320
496148
562817
587211
610931
441678
581199
621114
600466
615145
605462
539651
534376
591119
627074
463606
]
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 (788050 , 747969 , 602084 , 784121 , 812738 , 496144 , 562153 , 406095 , 426876 , 441222 , 431515 , 438605 , 451028 , 504594 , 514810 , 568568 , 580366 , 650518 , 661421 , 668699 , 666464 , 672305 , 716526 , 577145 , 585261 , 784629 , 786082 , 724183 , 608670 , 615710 , 791634 , 437385 , 447060 , 435601 , 430948 , 435607 , 505581 , 595037 , 435606 , 456037 , 463603 , 520829 , 518326 , 581478 , 720503 , 674132 , 662093 , 696802 , 564309 , 611005 , 595042 , 622290 , 802905 , 724931 , 447138 , 447821 , 500222 , 437389 , 446413 , 522320 , 496148 , 562817 , 587211 , 610931 , 441678 , 581199 , 621114 , 600466 , 615145 , 605462 , 539651 , 534376 , 591119 , 627074 , 463606 );
Copy
5
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
406095
426876
430948
431515
435601
435606
435607
437385
437389
438605
441222
441678
446413
447060
447138
447821
451028
456037
463603
463606
496144
496148
500222
504594
505581
514810
518326
520829
522320
534376
539651
562153
562817
564309
568568
577145
580366
581199
581478
585261
587211
591119
595037
595042
600466
602084
605462
608670
610931
611005
615145
615710
621114
622290
627074
650518
661421
662093
666464
668699
672305
674132
696802
716526
720503
724183
724931
747969
784121
784629
786082
788050
791634
802905
812738
]
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 (406095 , 426876 , 430948 , 431515 , 435601 , 435606 , 435607 , 437385 , 437389 , 438605 , 441222 , 441678 , 446413 , 447060 , 447138 , 447821 , 451028 , 456037 , 463603 , 463606 , 496144 , 496148 , 500222 , 504594 , 505581 , 514810 , 518326 , 520829 , 522320 , 534376 , 539651 , 562153 , 562817 , 564309 , 568568 , 577145 , 580366 , 581199 , 581478 , 585261 , 587211 , 591119 , 595037 , 595042 , 600466 , 602084 , 605462 , 608670 , 610931 , 611005 , 615145 , 615710 , 621114 , 622290 , 627074 , 650518 , 661421 , 662093 , 666464 , 668699 , 672305 , 674132 , 696802 , 716526 , 720503 , 724183 , 724931 , 747969 , 784121 , 784629 , 786082 , 788050 , 791634 , 802905 , 812738 );
Copy
6
124.02 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
406095
426876
430948
431515
435601
435606
435607
437385
437389
438605
441222
441678
446413
447060
447138
447821
451028
456037
463603
463606
496144
496148
500222
504594
505581
514810
518326
520829
522320
534376
539651
562153
562817
564309
568568
577145
580366
581199
581478
585261
587211
591119
595037
595042
600466
602084
605462
608670
610931
611005
615145
615710
621114
622290
627074
650518
661421
662093
666464
668699
672305
674132
696802
716526
720503
724183
724931
747969
784121
784629
786082
788050
791634
802905
812738
]
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 (406095 , 426876 , 430948 , 431515 , 435601 , 435606 , 435607 , 437385 , 437389 , 438605 , 441222 , 441678 , 446413 , 447060 , 447138 , 447821 , 451028 , 456037 , 463603 , 463606 , 496144 , 496148 , 500222 , 504594 , 505581 , 514810 , 518326 , 520829 , 522320 , 534376 , 539651 , 562153 , 562817 , 564309 , 568568 , 577145 , 580366 , 581199 , 581478 , 585261 , 587211 , 591119 , 595037 , 595042 , 600466 , 602084 , 605462 , 608670 , 610931 , 611005 , 615145 , 615710 , 621114 , 622290 , 627074 , 650518 , 661421 , 662093 , 666464 , 668699 , 672305 , 674132 , 696802 , 716526 , 720503 , 724183 , 724931 , 747969 , 784121 , 784629 , 786082 , 788050 , 791634 , 802905 , 812738 );
Copy