3
11.58 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
396936
727723
732633
440736
78828
590898
542053
694180
793578
663516
749632
731157
735860
761822
710839
579403
605509
742669
437972
440737
607511
602986
603669
502109
563644
654217
783677
460686
461124
563638
449676
477365
459593
496650
761832
510220
502381
483807
604052
472788
755457
530032
419158
502103
545094
631329
742684
466555
488822
502136
653630
626154
742675
742677
524235
542056
514659
458791
488821
566187
572214
755170
743906
445390
466493
458182
502554
510157
628654
654278
502540
510572
604700
630915
]
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 (396936 , 727723 , 732633 , 440736 , 78828 , 590898 , 542053 , 694180 , 793578 , 663516 , 749632 , 731157 , 735860 , 761822 , 710839 , 579403 , 605509 , 742669 , 437972 , 440737 , 607511 , 602986 , 603669 , 502109 , 563644 , 654217 , 783677 , 460686 , 461124 , 563638 , 449676 , 477365 , 459593 , 496650 , 761832 , 510220 , 502381 , 483807 , 604052 , 472788 , 755457 , 530032 , 419158 , 502103 , 545094 , 631329 , 742684 , 466555 , 488822 , 502136 , 653630 , 626154 , 742675 , 742677 , 524235 , 542056 , 514659 , 458791 , 488821 , 566187 , 572214 , 755170 , 743906 , 445390 , 466493 , 458182 , 502554 , 510157 , 628654 , 654278 , 502540 , 510572 , 604700 , 630915 );
Copy
4
2.18 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
78828
396936
419158
437972
440736
440737
445390
449676
458182
458791
459593
460686
461124
466493
466555
472788
477365
483807
488821
488822
496650
502103
502109
502136
502381
502540
502554
510157
510220
510572
514659
524235
530032
542053
542056
545094
563638
563644
566187
572214
579403
590898
602986
603669
604052
604700
605509
607511
626154
628654
630915
631329
653630
654217
654278
663516
694180
710839
727723
731157
732633
735860
742669
742675
742677
742684
743906
749632
755170
755457
761822
761832
783677
793578
]
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 (78828 , 396936 , 419158 , 437972 , 440736 , 440737 , 445390 , 449676 , 458182 , 458791 , 459593 , 460686 , 461124 , 466493 , 466555 , 472788 , 477365 , 483807 , 488821 , 488822 , 496650 , 502103 , 502109 , 502136 , 502381 , 502540 , 502554 , 510157 , 510220 , 510572 , 514659 , 524235 , 530032 , 542053 , 542056 , 545094 , 563638 , 563644 , 566187 , 572214 , 579403 , 590898 , 602986 , 603669 , 604052 , 604700 , 605509 , 607511 , 626154 , 628654 , 630915 , 631329 , 653630 , 654217 , 654278 , 663516 , 694180 , 710839 , 727723 , 731157 , 732633 , 735860 , 742669 , 742675 , 742677 , 742684 , 743906 , 749632 , 755170 , 755457 , 761822 , 761832 , 783677 , 793578 );
Copy
5
74.04 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
78828
396936
419158
437972
440736
440737
445390
449676
458182
458791
459593
460686
461124
466493
466555
472788
477365
483807
488821
488822
496650
502103
502109
502136
502381
502540
502554
510157
510220
510572
514659
524235
530032
542053
542056
545094
563638
563644
566187
572214
579403
590898
602986
603669
604052
604700
605509
607511
626154
628654
630915
631329
653630
654217
654278
663516
694180
710839
727723
731157
732633
735860
742669
742675
742677
742684
743906
749632
755170
755457
761822
761832
783677
793578
]
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 (78828 , 396936 , 419158 , 437972 , 440736 , 440737 , 445390 , 449676 , 458182 , 458791 , 459593 , 460686 , 461124 , 466493 , 466555 , 472788 , 477365 , 483807 , 488821 , 488822 , 496650 , 502103 , 502109 , 502136 , 502381 , 502540 , 502554 , 510157 , 510220 , 510572 , 514659 , 524235 , 530032 , 542053 , 542056 , 545094 , 563638 , 563644 , 566187 , 572214 , 579403 , 590898 , 602986 , 603669 , 604052 , 604700 , 605509 , 607511 , 626154 , 628654 , 630915 , 631329 , 653630 , 654217 , 654278 , 663516 , 694180 , 710839 , 727723 , 731157 , 732633 , 735860 , 742669 , 742675 , 742677 , 742684 , 743906 , 749632 , 755170 , 755457 , 761822 , 761832 , 783677 , 793578 );
Copy