3
9.39 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
804663
531103
768481
797886
641956
779294
434307
709786
777791
620957
697108
500943
674959
642066
675897
791132
743641
807242
588169
532674
600958
680754
739827
572881
669046
584843
782094
783709
697111
782048
787627
534530
790689
561748
554991
697106
782054
623279
662438
567676
460038
777784
786912
818067
671505
740910
758070
676634
598504
796862
772632
806640
439428
715289
751435
458368
579174
639897
777284
806910
428249
796877
679801
608534
]
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 (804663 , 531103 , 768481 , 797886 , 641956 , 779294 , 434307 , 709786 , 777791 , 620957 , 697108 , 500943 , 674959 , 642066 , 675897 , 791132 , 743641 , 807242 , 588169 , 532674 , 600958 , 680754 , 739827 , 572881 , 669046 , 584843 , 782094 , 783709 , 697111 , 782048 , 787627 , 534530 , 790689 , 561748 , 554991 , 697106 , 782054 , 623279 , 662438 , 567676 , 460038 , 777784 , 786912 , 818067 , 671505 , 740910 , 758070 , 676634 , 598504 , 796862 , 772632 , 806640 , 439428 , 715289 , 751435 , 458368 , 579174 , 639897 , 777284 , 806910 , 428249 , 796877 , 679801 , 608534 );
Copy
4
2.72 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
428249
434307
439428
458368
460038
500943
531103
532674
534530
554991
561748
567676
572881
579174
584843
588169
598504
600958
608534
620957
623279
639897
641956
642066
662438
669046
671505
674959
675897
676634
679801
680754
697106
697108
697111
709786
715289
739827
740910
743641
751435
758070
768481
772632
777284
777784
777791
779294
782048
782054
782094
783709
786912
787627
790689
791132
796862
796877
797886
804663
806640
806910
807242
818067
]
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 (428249 , 434307 , 439428 , 458368 , 460038 , 500943 , 531103 , 532674 , 534530 , 554991 , 561748 , 567676 , 572881 , 579174 , 584843 , 588169 , 598504 , 600958 , 608534 , 620957 , 623279 , 639897 , 641956 , 642066 , 662438 , 669046 , 671505 , 674959 , 675897 , 676634 , 679801 , 680754 , 697106 , 697108 , 697111 , 709786 , 715289 , 739827 , 740910 , 743641 , 751435 , 758070 , 768481 , 772632 , 777284 , 777784 , 777791 , 779294 , 782048 , 782054 , 782094 , 783709 , 786912 , 787627 , 790689 , 791132 , 796862 , 796877 , 797886 , 804663 , 806640 , 806910 , 807242 , 818067 );
Copy
5
80.08 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
428249
434307
439428
458368
460038
500943
531103
532674
534530
554991
561748
567676
572881
579174
584843
588169
598504
600958
608534
620957
623279
639897
641956
642066
662438
669046
671505
674959
675897
676634
679801
680754
697106
697108
697111
709786
715289
739827
740910
743641
751435
758070
768481
772632
777284
777784
777791
779294
782048
782054
782094
783709
786912
787627
790689
791132
796862
796877
797886
804663
806640
806910
807242
818067
]
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 (428249 , 434307 , 439428 , 458368 , 460038 , 500943 , 531103 , 532674 , 534530 , 554991 , 561748 , 567676 , 572881 , 579174 , 584843 , 588169 , 598504 , 600958 , 608534 , 620957 , 623279 , 639897 , 641956 , 642066 , 662438 , 669046 , 671505 , 674959 , 675897 , 676634 , 679801 , 680754 , 697106 , 697108 , 697111 , 709786 , 715289 , 739827 , 740910 , 743641 , 751435 , 758070 , 768481 , 772632 , 777284 , 777784 , 777791 , 779294 , 782048 , 782054 , 782094 , 783709 , 786912 , 787627 , 790689 , 791132 , 796862 , 796877 , 797886 , 804663 , 806640 , 806910 , 807242 , 818067 );
Copy