3
12.64 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
611973
602755
619327
812952
617327
594831
382801
612014
403377
564735
643247
580047
562813
512813
584633
643018
585388
777678
803703
403560
397164
503683
403382
731092
617111
446666
564737
464979
790493
601320
711723
602796
489060
461213
820094
664514
667846
591236
714127
594950
398519
403538
459352
544103
568701
758201
732518
456752
442405
462053
543479
570090
510691
504593
546017
591648
510686
463673
619097
435716
425753
521526
561458
611986
]
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 (611973 , 602755 , 619327 , 812952 , 617327 , 594831 , 382801 , 612014 , 403377 , 564735 , 643247 , 580047 , 562813 , 512813 , 584633 , 643018 , 585388 , 777678 , 803703 , 403560 , 397164 , 503683 , 403382 , 731092 , 617111 , 446666 , 564737 , 464979 , 790493 , 601320 , 711723 , 602796 , 489060 , 461213 , 820094 , 664514 , 667846 , 591236 , 714127 , 594950 , 398519 , 403538 , 459352 , 544103 , 568701 , 758201 , 732518 , 456752 , 442405 , 462053 , 543479 , 570090 , 510691 , 504593 , 546017 , 591648 , 510686 , 463673 , 619097 , 435716 , 425753 , 521526 , 561458 , 611986 );
Copy
4
3.40 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
382801
397164
398519
403377
403382
403538
403560
425753
435716
442405
446666
456752
459352
461213
462053
463673
464979
489060
503683
504593
510686
510691
512813
521526
543479
544103
546017
561458
562813
564735
564737
568701
570090
580047
584633
585388
591236
591648
594831
594950
601320
602755
602796
611973
611986
612014
617111
617327
619097
619327
643018
643247
664514
667846
711723
714127
731092
732518
758201
777678
790493
803703
812952
820094
]
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 (382801 , 397164 , 398519 , 403377 , 403382 , 403538 , 403560 , 425753 , 435716 , 442405 , 446666 , 456752 , 459352 , 461213 , 462053 , 463673 , 464979 , 489060 , 503683 , 504593 , 510686 , 510691 , 512813 , 521526 , 543479 , 544103 , 546017 , 561458 , 562813 , 564735 , 564737 , 568701 , 570090 , 580047 , 584633 , 585388 , 591236 , 591648 , 594831 , 594950 , 601320 , 602755 , 602796 , 611973 , 611986 , 612014 , 617111 , 617327 , 619097 , 619327 , 643018 , 643247 , 664514 , 667846 , 711723 , 714127 , 731092 , 732518 , 758201 , 777678 , 790493 , 803703 , 812952 , 820094 );
Copy
5
81.17 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
382801
397164
398519
403377
403382
403538
403560
425753
435716
442405
446666
456752
459352
461213
462053
463673
464979
489060
503683
504593
510686
510691
512813
521526
543479
544103
546017
561458
562813
564735
564737
568701
570090
580047
584633
585388
591236
591648
594831
594950
601320
602755
602796
611973
611986
612014
617111
617327
619097
619327
643018
643247
664514
667846
711723
714127
731092
732518
758201
777678
790493
803703
812952
820094
]
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 (382801 , 397164 , 398519 , 403377 , 403382 , 403538 , 403560 , 425753 , 435716 , 442405 , 446666 , 456752 , 459352 , 461213 , 462053 , 463673 , 464979 , 489060 , 503683 , 504593 , 510686 , 510691 , 512813 , 521526 , 543479 , 544103 , 546017 , 561458 , 562813 , 564735 , 564737 , 568701 , 570090 , 580047 , 584633 , 585388 , 591236 , 591648 , 594831 , 594950 , 601320 , 602755 , 602796 , 611973 , 611986 , 612014 , 617111 , 617327 , 619097 , 619327 , 643018 , 643247 , 664514 , 667846 , 711723 , 714127 , 731092 , 732518 , 758201 , 777678 , 790493 , 803703 , 812952 , 820094 );
Copy