3
10.78 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
755596
827402
795004
794985
747137
718581
565263
633742
542864
817709
594980
597844
757212
800913
758448
553663
553665
642041
545418
744938
639292
542583
650127
794988
553675
826298
542431
630572
634787
666901
573516
648854
599955
639818
634801
634218
799435
751715
632562
550124
543627
631249
601579
637043
640800
582323
541197
651599
601584
599875
599914
634790
627807
545373
666892
666902
633736
641700
599961
599969
633491
633451
631194
646427
545409
676428
707391
628332
634140
628383
639719
628371
630552
666850
545355
]
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 (755596 , 827402 , 795004 , 794985 , 747137 , 718581 , 565263 , 633742 , 542864 , 817709 , 594980 , 597844 , 757212 , 800913 , 758448 , 553663 , 553665 , 642041 , 545418 , 744938 , 639292 , 542583 , 650127 , 794988 , 553675 , 826298 , 542431 , 630572 , 634787 , 666901 , 573516 , 648854 , 599955 , 639818 , 634801 , 634218 , 799435 , 751715 , 632562 , 550124 , 543627 , 631249 , 601579 , 637043 , 640800 , 582323 , 541197 , 651599 , 601584 , 599875 , 599914 , 634790 , 627807 , 545373 , 666892 , 666902 , 633736 , 641700 , 599961 , 599969 , 633491 , 633451 , 631194 , 646427 , 545409 , 676428 , 707391 , 628332 , 634140 , 628383 , 639719 , 628371 , 630552 , 666850 , 545355 );
Copy
4
2.79 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
541197
542431
542583
542864
543627
545355
545373
545409
545418
550124
553663
553665
553675
565263
573516
582323
594980
597844
599875
599914
599955
599961
599969
601579
601584
627807
628332
628371
628383
630552
630572
631194
631249
632562
633451
633491
633736
633742
634140
634218
634787
634790
634801
637043
639292
639719
639818
640800
641700
642041
646427
648854
650127
651599
666850
666892
666901
666902
676428
707391
718581
744938
747137
751715
755596
757212
758448
794985
794988
795004
799435
800913
817709
826298
827402
]
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 (541197 , 542431 , 542583 , 542864 , 543627 , 545355 , 545373 , 545409 , 545418 , 550124 , 553663 , 553665 , 553675 , 565263 , 573516 , 582323 , 594980 , 597844 , 599875 , 599914 , 599955 , 599961 , 599969 , 601579 , 601584 , 627807 , 628332 , 628371 , 628383 , 630552 , 630572 , 631194 , 631249 , 632562 , 633451 , 633491 , 633736 , 633742 , 634140 , 634218 , 634787 , 634790 , 634801 , 637043 , 639292 , 639719 , 639818 , 640800 , 641700 , 642041 , 646427 , 648854 , 650127 , 651599 , 666850 , 666892 , 666901 , 666902 , 676428 , 707391 , 718581 , 744938 , 747137 , 751715 , 755596 , 757212 , 758448 , 794985 , 794988 , 795004 , 799435 , 800913 , 817709 , 826298 , 827402 );
Copy
5
154.84 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
541197
542431
542583
542864
543627
545355
545373
545409
545418
550124
553663
553665
553675
565263
573516
582323
594980
597844
599875
599914
599955
599961
599969
601579
601584
627807
628332
628371
628383
630552
630572
631194
631249
632562
633451
633491
633736
633742
634140
634218
634787
634790
634801
637043
639292
639719
639818
640800
641700
642041
646427
648854
650127
651599
666850
666892
666901
666902
676428
707391
718581
744938
747137
751715
755596
757212
758448
794985
794988
795004
799435
800913
817709
826298
827402
]
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 (541197 , 542431 , 542583 , 542864 , 543627 , 545355 , 545373 , 545409 , 545418 , 550124 , 553663 , 553665 , 553675 , 565263 , 573516 , 582323 , 594980 , 597844 , 599875 , 599914 , 599955 , 599961 , 599969 , 601579 , 601584 , 627807 , 628332 , 628371 , 628383 , 630552 , 630572 , 631194 , 631249 , 632562 , 633451 , 633491 , 633736 , 633742 , 634140 , 634218 , 634787 , 634790 , 634801 , 637043 , 639292 , 639719 , 639818 , 640800 , 641700 , 642041 , 646427 , 648854 , 650127 , 651599 , 666850 , 666892 , 666901 , 666902 , 676428 , 707391 , 718581 , 744938 , 747137 , 751715 , 755596 , 757212 , 758448 , 794985 , 794988 , 795004 , 799435 , 800913 , 817709 , 826298 , 827402 );
Copy