3
13.13 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
826027
745503
729669
655182
756822
817232
605128
758819
759791
767043
656944
790523
421444
673942
396092
694411
704184
704178
657556
652760
592712
800001
599693
445885
548854
763876
818541
511090
805282
751738
431439
435146
657543
580069
577684
770729
530481
444829
590778
445413
556906
813122
446404
585294
791926
722781
424195
507899
494990
758024
445135
485468
549813
600972
740833
532729
479767
519481
441095
505139
457512
493254
603362
740251
446022
560337
505138
456244
509218
509684
523851
633816
510177
602300
487746
623199
]
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 (826027 , 745503 , 729669 , 655182 , 756822 , 817232 , 605128 , 758819 , 759791 , 767043 , 656944 , 790523 , 421444 , 673942 , 396092 , 694411 , 704184 , 704178 , 657556 , 652760 , 592712 , 800001 , 599693 , 445885 , 548854 , 763876 , 818541 , 511090 , 805282 , 751738 , 431439 , 435146 , 657543 , 580069 , 577684 , 770729 , 530481 , 444829 , 590778 , 445413 , 556906 , 813122 , 446404 , 585294 , 791926 , 722781 , 424195 , 507899 , 494990 , 758024 , 445135 , 485468 , 549813 , 600972 , 740833 , 532729 , 479767 , 519481 , 441095 , 505139 , 457512 , 493254 , 603362 , 740251 , 446022 , 560337 , 505138 , 456244 , 509218 , 509684 , 523851 , 633816 , 510177 , 602300 , 487746 , 623199 );
Copy
4
3.50 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
396092
421444
424195
431439
435146
441095
444829
445135
445413
445885
446022
446404
456244
457512
479767
485468
487746
493254
494990
505138
505139
507899
509218
509684
510177
511090
519481
523851
530481
532729
548854
549813
556906
560337
577684
580069
585294
590778
592712
599693
600972
602300
603362
605128
623199
633816
652760
655182
656944
657543
657556
673942
694411
704178
704184
722781
729669
740251
740833
745503
751738
756822
758024
758819
759791
763876
767043
770729
790523
791926
800001
805282
813122
817232
818541
]
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 (396092 , 421444 , 424195 , 431439 , 435146 , 441095 , 444829 , 445135 , 445413 , 445885 , 446022 , 446404 , 456244 , 457512 , 479767 , 485468 , 487746 , 493254 , 494990 , 505138 , 505139 , 507899 , 509218 , 509684 , 510177 , 511090 , 519481 , 523851 , 530481 , 532729 , 548854 , 549813 , 556906 , 560337 , 577684 , 580069 , 585294 , 590778 , 592712 , 599693 , 600972 , 602300 , 603362 , 605128 , 623199 , 633816 , 652760 , 655182 , 656944 , 657543 , 657556 , 673942 , 694411 , 704178 , 704184 , 722781 , 729669 , 740251 , 740833 , 745503 , 751738 , 756822 , 758024 , 758819 , 759791 , 763876 , 767043 , 770729 , 790523 , 791926 , 800001 , 805282 , 813122 , 817232 , 818541 );
Copy
5
80.88 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
396092
421444
424195
431439
435146
441095
444829
445135
445413
445885
446022
446404
456244
457512
479767
485468
487746
493254
494990
505138
505139
507899
509218
509684
510177
511090
519481
523851
530481
532729
548854
549813
556906
560337
577684
580069
585294
590778
592712
599693
600972
602300
603362
605128
623199
633816
652760
655182
656944
657543
657556
673942
694411
704178
704184
722781
729669
740251
740833
745503
751738
756822
758024
758819
759791
763876
767043
770729
790523
791926
800001
805282
813122
817232
818541
]
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 (396092 , 421444 , 424195 , 431439 , 435146 , 441095 , 444829 , 445135 , 445413 , 445885 , 446022 , 446404 , 456244 , 457512 , 479767 , 485468 , 487746 , 493254 , 494990 , 505138 , 505139 , 507899 , 509218 , 509684 , 510177 , 511090 , 519481 , 523851 , 530481 , 532729 , 548854 , 549813 , 556906 , 560337 , 577684 , 580069 , 585294 , 590778 , 592712 , 599693 , 600972 , 602300 , 603362 , 605128 , 623199 , 633816 , 652760 , 655182 , 656944 , 657543 , 657556 , 673942 , 694411 , 704178 , 704184 , 722781 , 729669 , 740251 , 740833 , 745503 , 751738 , 756822 , 758024 , 758819 , 759791 , 763876 , 767043 , 770729 , 790523 , 791926 , 800001 , 805282 , 813122 , 817232 , 818541 );
Copy