3
10.69 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
690717
697935
636666
807142
737177
788402
557882
733096
696450
711268
716152
648809
637021
599875
731276
645276
633451
635219
473343
542583
642038
711542
796168
808095
539203
537654
632690
446972
450390
711554
711565
428104
537204
696582
600296
529792
666895
645284
646427
545117
630546
634140
503105
535005
481602
429799
646895
452284
530630
573479
633819
634790
533837
541863
677303
445737
537648
642032
676428
695127
628371
642037
675012
]
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 (690717 , 697935 , 636666 , 807142 , 737177 , 788402 , 557882 , 733096 , 696450 , 711268 , 716152 , 648809 , 637021 , 599875 , 731276 , 645276 , 633451 , 635219 , 473343 , 542583 , 642038 , 711542 , 796168 , 808095 , 539203 , 537654 , 632690 , 446972 , 450390 , 711554 , 711565 , 428104 , 537204 , 696582 , 600296 , 529792 , 666895 , 645284 , 646427 , 545117 , 630546 , 634140 , 503105 , 535005 , 481602 , 429799 , 646895 , 452284 , 530630 , 573479 , 633819 , 634790 , 533837 , 541863 , 677303 , 445737 , 537648 , 642032 , 676428 , 695127 , 628371 , 642037 , 675012 );
Copy
4
3.31 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
428104
429799
445737
446972
450390
452284
473343
481602
503105
529792
530630
533837
535005
537204
537648
537654
539203
541863
542583
545117
557882
573479
599875
600296
628371
630546
632690
633451
633819
634140
634790
635219
636666
637021
642032
642037
642038
645276
645284
646427
646895
648809
666895
675012
676428
677303
690717
695127
696450
696582
697935
711268
711542
711554
711565
716152
731276
733096
737177
788402
796168
807142
808095
]
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 (428104 , 429799 , 445737 , 446972 , 450390 , 452284 , 473343 , 481602 , 503105 , 529792 , 530630 , 533837 , 535005 , 537204 , 537648 , 537654 , 539203 , 541863 , 542583 , 545117 , 557882 , 573479 , 599875 , 600296 , 628371 , 630546 , 632690 , 633451 , 633819 , 634140 , 634790 , 635219 , 636666 , 637021 , 642032 , 642037 , 642038 , 645276 , 645284 , 646427 , 646895 , 648809 , 666895 , 675012 , 676428 , 677303 , 690717 , 695127 , 696450 , 696582 , 697935 , 711268 , 711542 , 711554 , 711565 , 716152 , 731276 , 733096 , 737177 , 788402 , 796168 , 807142 , 808095 );
Copy
5
81.21 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
428104
429799
445737
446972
450390
452284
473343
481602
503105
529792
530630
533837
535005
537204
537648
537654
539203
541863
542583
545117
557882
573479
599875
600296
628371
630546
632690
633451
633819
634140
634790
635219
636666
637021
642032
642037
642038
645276
645284
646427
646895
648809
666895
675012
676428
677303
690717
695127
696450
696582
697935
711268
711542
711554
711565
716152
731276
733096
737177
788402
796168
807142
808095
]
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 (428104 , 429799 , 445737 , 446972 , 450390 , 452284 , 473343 , 481602 , 503105 , 529792 , 530630 , 533837 , 535005 , 537204 , 537648 , 537654 , 539203 , 541863 , 542583 , 545117 , 557882 , 573479 , 599875 , 600296 , 628371 , 630546 , 632690 , 633451 , 633819 , 634140 , 634790 , 635219 , 636666 , 637021 , 642032 , 642037 , 642038 , 645276 , 645284 , 646427 , 646895 , 648809 , 666895 , 675012 , 676428 , 677303 , 690717 , 695127 , 696450 , 696582 , 697935 , 711268 , 711542 , 711554 , 711565 , 716152 , 731276 , 733096 , 737177 , 788402 , 796168 , 807142 , 808095 );
Copy