3
12.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
687204
696353
741234
702759
386388
609290
569709
550557
546255
826021
402692
403959
537116
6765
753696
668996
476042
7161
699824
747600
745662
784287
402730
811450
775705
435400
817154
721627
406361
416902
473005
512684
502259
406724
421020
486384
545733
714577
746489
617156
810035
422074
437256
494745
445424
575807
605437
705907
605572
494298
704560
568154
449879
447444
413058
471109
457144
422732
639809
807327
507696
531172
575806
699025
640531
447959
524773
518957
464204
526447
617418
678153
604161
523892
623168
]
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 (687204 , 696353 , 741234 , 702759 , 386388 , 609290 , 569709 , 550557 , 546255 , 826021 , 402692 , 403959 , 537116 , 6765 , 753696 , 668996 , 476042 , 7161 , 699824 , 747600 , 745662 , 784287 , 402730 , 811450 , 775705 , 435400 , 817154 , 721627 , 406361 , 416902 , 473005 , 512684 , 502259 , 406724 , 421020 , 486384 , 545733 , 714577 , 746489 , 617156 , 810035 , 422074 , 437256 , 494745 , 445424 , 575807 , 605437 , 705907 , 605572 , 494298 , 704560 , 568154 , 449879 , 447444 , 413058 , 471109 , 457144 , 422732 , 639809 , 807327 , 507696 , 531172 , 575806 , 699025 , 640531 , 447959 , 524773 , 518957 , 464204 , 526447 , 617418 , 678153 , 604161 , 523892 , 623168 );
Copy
4
2.25 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
6765
7161
386388
402692
402730
403959
406361
406724
413058
416902
421020
422074
422732
435400
437256
445424
447444
447959
449879
457144
464204
471109
473005
476042
486384
494298
494745
502259
507696
512684
518957
523892
524773
526447
531172
537116
545733
546255
550557
568154
569709
575806
575807
604161
605437
605572
609290
617156
617418
623168
639809
640531
668996
678153
687204
696353
699025
699824
702759
704560
705907
714577
721627
741234
745662
746489
747600
753696
775705
784287
807327
810035
811450
817154
826021
]
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 (6765 , 7161 , 386388 , 402692 , 402730 , 403959 , 406361 , 406724 , 413058 , 416902 , 421020 , 422074 , 422732 , 435400 , 437256 , 445424 , 447444 , 447959 , 449879 , 457144 , 464204 , 471109 , 473005 , 476042 , 486384 , 494298 , 494745 , 502259 , 507696 , 512684 , 518957 , 523892 , 524773 , 526447 , 531172 , 537116 , 545733 , 546255 , 550557 , 568154 , 569709 , 575806 , 575807 , 604161 , 605437 , 605572 , 609290 , 617156 , 617418 , 623168 , 639809 , 640531 , 668996 , 678153 , 687204 , 696353 , 699025 , 699824 , 702759 , 704560 , 705907 , 714577 , 721627 , 741234 , 745662 , 746489 , 747600 , 753696 , 775705 , 784287 , 807327 , 810035 , 811450 , 817154 , 826021 );
Copy
5
82.01 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
6765
7161
386388
402692
402730
403959
406361
406724
413058
416902
421020
422074
422732
435400
437256
445424
447444
447959
449879
457144
464204
471109
473005
476042
486384
494298
494745
502259
507696
512684
518957
523892
524773
526447
531172
537116
545733
546255
550557
568154
569709
575806
575807
604161
605437
605572
609290
617156
617418
623168
639809
640531
668996
678153
687204
696353
699025
699824
702759
704560
705907
714577
721627
741234
745662
746489
747600
753696
775705
784287
807327
810035
811450
817154
826021
]
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 (6765 , 7161 , 386388 , 402692 , 402730 , 403959 , 406361 , 406724 , 413058 , 416902 , 421020 , 422074 , 422732 , 435400 , 437256 , 445424 , 447444 , 447959 , 449879 , 457144 , 464204 , 471109 , 473005 , 476042 , 486384 , 494298 , 494745 , 502259 , 507696 , 512684 , 518957 , 523892 , 524773 , 526447 , 531172 , 537116 , 545733 , 546255 , 550557 , 568154 , 569709 , 575806 , 575807 , 604161 , 605437 , 605572 , 609290 , 617156 , 617418 , 623168 , 639809 , 640531 , 668996 , 678153 , 687204 , 696353 , 699025 , 699824 , 702759 , 704560 , 705907 , 714577 , 721627 , 741234 , 745662 , 746489 , 747600 , 753696 , 775705 , 784287 , 807327 , 810035 , 811450 , 817154 , 826021 );
Copy