3
10.97 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
549950
549958
549956
549960
549974
550007
546988
555409
550044
678479
550017
802414
550003
694635
808054
505311
655260
800577
802712
773490
761488
490792
693343
771960
808180
735839
675890
647675
698051
519090
549268
558076
654347
722521
676644
634873
805989
807703
811270
603897
486641
226195
814270
532444
651637
610623
770307
428695
571266
543356
684560
653956
653937
679373
600962
603891
607640
755082
771148
644940
787020
416312
459867
797560
532954
561375
596904
519198
]
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 (549950 , 549958 , 549956 , 549960 , 549974 , 550007 , 546988 , 555409 , 550044 , 678479 , 550017 , 802414 , 550003 , 694635 , 808054 , 505311 , 655260 , 800577 , 802712 , 773490 , 761488 , 490792 , 693343 , 771960 , 808180 , 735839 , 675890 , 647675 , 698051 , 519090 , 549268 , 558076 , 654347 , 722521 , 676644 , 634873 , 805989 , 807703 , 811270 , 603897 , 486641 , 226195 , 814270 , 532444 , 651637 , 610623 , 770307 , 428695 , 571266 , 543356 , 684560 , 653956 , 653937 , 679373 , 600962 , 603891 , 607640 , 755082 , 771148 , 644940 , 787020 , 416312 , 459867 , 797560 , 532954 , 561375 , 596904 , 519198 );
Copy
4
2.64 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
226195
416312
428695
459867
486641
490792
505311
519090
519198
532444
532954
543356
546988
549268
549950
549956
549958
549960
549974
550003
550007
550017
550044
555409
558076
561375
571266
596904
600962
603891
603897
607640
610623
634873
644940
647675
651637
653937
653956
654347
655260
675890
676644
678479
679373
684560
693343
694635
698051
722521
735839
755082
761488
770307
771148
771960
773490
787020
797560
800577
802414
802712
805989
807703
808054
808180
811270
814270
]
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 (226195 , 416312 , 428695 , 459867 , 486641 , 490792 , 505311 , 519090 , 519198 , 532444 , 532954 , 543356 , 546988 , 549268 , 549950 , 549956 , 549958 , 549960 , 549974 , 550003 , 550007 , 550017 , 550044 , 555409 , 558076 , 561375 , 571266 , 596904 , 600962 , 603891 , 603897 , 607640 , 610623 , 634873 , 644940 , 647675 , 651637 , 653937 , 653956 , 654347 , 655260 , 675890 , 676644 , 678479 , 679373 , 684560 , 693343 , 694635 , 698051 , 722521 , 735839 , 755082 , 761488 , 770307 , 771148 , 771960 , 773490 , 787020 , 797560 , 800577 , 802414 , 802712 , 805989 , 807703 , 808054 , 808180 , 811270 , 814270 );
Copy
5
136.77 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
226195
416312
428695
459867
486641
490792
505311
519090
519198
532444
532954
543356
546988
549268
549950
549956
549958
549960
549974
550003
550007
550017
550044
555409
558076
561375
571266
596904
600962
603891
603897
607640
610623
634873
644940
647675
651637
653937
653956
654347
655260
675890
676644
678479
679373
684560
693343
694635
698051
722521
735839
755082
761488
770307
771148
771960
773490
787020
797560
800577
802414
802712
805989
807703
808054
808180
811270
814270
]
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 (226195 , 416312 , 428695 , 459867 , 486641 , 490792 , 505311 , 519090 , 519198 , 532444 , 532954 , 543356 , 546988 , 549268 , 549950 , 549956 , 549958 , 549960 , 549974 , 550003 , 550007 , 550017 , 550044 , 555409 , 558076 , 561375 , 571266 , 596904 , 600962 , 603891 , 603897 , 607640 , 610623 , 634873 , 644940 , 647675 , 651637 , 653937 , 653956 , 654347 , 655260 , 675890 , 676644 , 678479 , 679373 , 684560 , 693343 , 694635 , 698051 , 722521 , 735839 , 755082 , 761488 , 770307 , 771148 , 771960 , 773490 , 787020 , 797560 , 800577 , 802414 , 802712 , 805989 , 807703 , 808054 , 808180 , 811270 , 814270 );
Copy