3
12.52 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
551820
707689
808625
629042
416038
418142
418720
412180
464659
536641
511856
569050
416511
516648
464737
520692
728336
452627
567677
522559
416596
416626
416025
775321
505376
527706
452843
530943
556806
452923
416614
483735
493864
493916
418145
566320
644915
430344
483352
420918
443247
443246
418144
498237
619777
495220
447096
516329
485591
472953
745939
516314
670745
453344
429369
584208
445409
484958
584887
504085
621489
636231
520138
]
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 (551820 , 707689 , 808625 , 629042 , 416038 , 418142 , 418720 , 412180 , 464659 , 536641 , 511856 , 569050 , 416511 , 516648 , 464737 , 520692 , 728336 , 452627 , 567677 , 522559 , 416596 , 416626 , 416025 , 775321 , 505376 , 527706 , 452843 , 530943 , 556806 , 452923 , 416614 , 483735 , 493864 , 493916 , 418145 , 566320 , 644915 , 430344 , 483352 , 420918 , 443247 , 443246 , 418144 , 498237 , 619777 , 495220 , 447096 , 516329 , 485591 , 472953 , 745939 , 516314 , 670745 , 453344 , 429369 , 584208 , 445409 , 484958 , 584887 , 504085 , 621489 , 636231 , 520138 );
Copy
4
2.73 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
412180
416025
416038
416511
416596
416614
416626
418142
418144
418145
418720
420918
429369
430344
443246
443247
445409
447096
452627
452843
452923
453344
464659
464737
472953
483352
483735
484958
485591
493864
493916
495220
498237
504085
505376
511856
516314
516329
516648
520138
520692
522559
527706
530943
536641
551820
556806
566320
567677
569050
584208
584887
619777
621489
629042
636231
644915
670745
707689
728336
745939
775321
808625
]
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 (412180 , 416025 , 416038 , 416511 , 416596 , 416614 , 416626 , 418142 , 418144 , 418145 , 418720 , 420918 , 429369 , 430344 , 443246 , 443247 , 445409 , 447096 , 452627 , 452843 , 452923 , 453344 , 464659 , 464737 , 472953 , 483352 , 483735 , 484958 , 485591 , 493864 , 493916 , 495220 , 498237 , 504085 , 505376 , 511856 , 516314 , 516329 , 516648 , 520138 , 520692 , 522559 , 527706 , 530943 , 536641 , 551820 , 556806 , 566320 , 567677 , 569050 , 584208 , 584887 , 619777 , 621489 , 629042 , 636231 , 644915 , 670745 , 707689 , 728336 , 745939 , 775321 , 808625 );
Copy
5
102.13 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
412180
416025
416038
416511
416596
416614
416626
418142
418144
418145
418720
420918
429369
430344
443246
443247
445409
447096
452627
452843
452923
453344
464659
464737
472953
483352
483735
484958
485591
493864
493916
495220
498237
504085
505376
511856
516314
516329
516648
520138
520692
522559
527706
530943
536641
551820
556806
566320
567677
569050
584208
584887
619777
621489
629042
636231
644915
670745
707689
728336
745939
775321
808625
]
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 (412180 , 416025 , 416038 , 416511 , 416596 , 416614 , 416626 , 418142 , 418144 , 418145 , 418720 , 420918 , 429369 , 430344 , 443246 , 443247 , 445409 , 447096 , 452627 , 452843 , 452923 , 453344 , 464659 , 464737 , 472953 , 483352 , 483735 , 484958 , 485591 , 493864 , 493916 , 495220 , 498237 , 504085 , 505376 , 511856 , 516314 , 516329 , 516648 , 520138 , 520692 , 522559 , 527706 , 530943 , 536641 , 551820 , 556806 , 566320 , 567677 , 569050 , 584208 , 584887 , 619777 , 621489 , 629042 , 636231 , 644915 , 670745 , 707689 , 728336 , 745939 , 775321 , 808625 );
Copy