3
11.48 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
817196
773903
711909
590848
727564
807123
776662
790496
814469
679666
483570
817178
656603
669309
796763
770436
590736
822306
812395
581488
455897
458443
601830
775705
711235
712795
778943
788830
492613
661364
709449
597167
733681
191485
483583
575871
466700
402632
443245
656935
720401
638761
761208
447035
445941
544860
416626
700670
750152
447843
416511
439151
712775
429931
470175
469641
500758
692887
416596
537901
416614
465447
452228
600194
493803
500960
425356
530805
633163
639159
524506
604640
]
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 (817196 , 773903 , 711909 , 590848 , 727564 , 807123 , 776662 , 790496 , 814469 , 679666 , 483570 , 817178 , 656603 , 669309 , 796763 , 770436 , 590736 , 822306 , 812395 , 581488 , 455897 , 458443 , 601830 , 775705 , 711235 , 712795 , 778943 , 788830 , 492613 , 661364 , 709449 , 597167 , 733681 , 191485 , 483583 , 575871 , 466700 , 402632 , 443245 , 656935 , 720401 , 638761 , 761208 , 447035 , 445941 , 544860 , 416626 , 700670 , 750152 , 447843 , 416511 , 439151 , 712775 , 429931 , 470175 , 469641 , 500758 , 692887 , 416596 , 537901 , 416614 , 465447 , 452228 , 600194 , 493803 , 500960 , 425356 , 530805 , 633163 , 639159 , 524506 , 604640 );
Copy
4
2.93 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
191485
402632
416511
416596
416614
416626
425356
429931
439151
443245
445941
447035
447843
452228
455897
458443
465447
466700
469641
470175
483570
483583
492613
493803
500758
500960
524506
530805
537901
544860
575871
581488
590736
590848
597167
600194
601830
604640
633163
638761
639159
656603
656935
661364
669309
679666
692887
700670
709449
711235
711909
712775
712795
720401
727564
733681
750152
761208
770436
773903
775705
776662
778943
788830
790496
796763
807123
812395
814469
817178
817196
822306
]
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 (191485 , 402632 , 416511 , 416596 , 416614 , 416626 , 425356 , 429931 , 439151 , 443245 , 445941 , 447035 , 447843 , 452228 , 455897 , 458443 , 465447 , 466700 , 469641 , 470175 , 483570 , 483583 , 492613 , 493803 , 500758 , 500960 , 524506 , 530805 , 537901 , 544860 , 575871 , 581488 , 590736 , 590848 , 597167 , 600194 , 601830 , 604640 , 633163 , 638761 , 639159 , 656603 , 656935 , 661364 , 669309 , 679666 , 692887 , 700670 , 709449 , 711235 , 711909 , 712775 , 712795 , 720401 , 727564 , 733681 , 750152 , 761208 , 770436 , 773903 , 775705 , 776662 , 778943 , 788830 , 790496 , 796763 , 807123 , 812395 , 814469 , 817178 , 817196 , 822306 );
Copy
5
85.19 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
191485
402632
416511
416596
416614
416626
425356
429931
439151
443245
445941
447035
447843
452228
455897
458443
465447
466700
469641
470175
483570
483583
492613
493803
500758
500960
524506
530805
537901
544860
575871
581488
590736
590848
597167
600194
601830
604640
633163
638761
639159
656603
656935
661364
669309
679666
692887
700670
709449
711235
711909
712775
712795
720401
727564
733681
750152
761208
770436
773903
775705
776662
778943
788830
790496
796763
807123
812395
814469
817178
817196
822306
]
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 (191485 , 402632 , 416511 , 416596 , 416614 , 416626 , 425356 , 429931 , 439151 , 443245 , 445941 , 447035 , 447843 , 452228 , 455897 , 458443 , 465447 , 466700 , 469641 , 470175 , 483570 , 483583 , 492613 , 493803 , 500758 , 500960 , 524506 , 530805 , 537901 , 544860 , 575871 , 581488 , 590736 , 590848 , 597167 , 600194 , 601830 , 604640 , 633163 , 638761 , 639159 , 656603 , 656935 , 661364 , 669309 , 679666 , 692887 , 700670 , 709449 , 711235 , 711909 , 712775 , 712795 , 720401 , 727564 , 733681 , 750152 , 761208 , 770436 , 773903 , 775705 , 776662 , 778943 , 788830 , 790496 , 796763 , 807123 , 812395 , 814469 , 817178 , 817196 , 822306 );
Copy