3
11.66 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
691616
633179
692452
547961
663547
536399
605029
544751
451263
690885
530289
736778
97156
674515
609531
544748
392178
397899
534129
78994
398773
540100
720833
615312
606514
534131
583511
654270
567955
482147
550665
550294
719841
587605
381928
563411
634770
603649
490261
472785
526126
469764
578017
751589
477354
516643
610822
423940
436820
495149
627703
733071
387905
516375
603653
584063
593868
599888
484696
584644
518521
588286
459857
]
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 (691616 , 633179 , 692452 , 547961 , 663547 , 536399 , 605029 , 544751 , 451263 , 690885 , 530289 , 736778 , 97156 , 674515 , 609531 , 544748 , 392178 , 397899 , 534129 , 78994 , 398773 , 540100 , 720833 , 615312 , 606514 , 534131 , 583511 , 654270 , 567955 , 482147 , 550665 , 550294 , 719841 , 587605 , 381928 , 563411 , 634770 , 603649 , 490261 , 472785 , 526126 , 469764 , 578017 , 751589 , 477354 , 516643 , 610822 , 423940 , 436820 , 495149 , 627703 , 733071 , 387905 , 516375 , 603653 , 584063 , 593868 , 599888 , 484696 , 584644 , 518521 , 588286 , 459857 );
Copy
4
2.76 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
78994
97156
381928
387905
392178
397899
398773
423940
436820
451263
459857
469764
472785
477354
482147
484696
490261
495149
516375
516643
518521
526126
530289
534129
534131
536399
540100
544748
544751
547961
550294
550665
563411
567955
578017
583511
584063
584644
587605
588286
593868
599888
603649
603653
605029
606514
609531
610822
615312
627703
633179
634770
654270
663547
674515
690885
691616
692452
719841
720833
733071
736778
751589
]
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 (78994 , 97156 , 381928 , 387905 , 392178 , 397899 , 398773 , 423940 , 436820 , 451263 , 459857 , 469764 , 472785 , 477354 , 482147 , 484696 , 490261 , 495149 , 516375 , 516643 , 518521 , 526126 , 530289 , 534129 , 534131 , 536399 , 540100 , 544748 , 544751 , 547961 , 550294 , 550665 , 563411 , 567955 , 578017 , 583511 , 584063 , 584644 , 587605 , 588286 , 593868 , 599888 , 603649 , 603653 , 605029 , 606514 , 609531 , 610822 , 615312 , 627703 , 633179 , 634770 , 654270 , 663547 , 674515 , 690885 , 691616 , 692452 , 719841 , 720833 , 733071 , 736778 , 751589 );
Copy
5
71.55 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
78994
97156
381928
387905
392178
397899
398773
423940
436820
451263
459857
469764
472785
477354
482147
484696
490261
495149
516375
516643
518521
526126
530289
534129
534131
536399
540100
544748
544751
547961
550294
550665
563411
567955
578017
583511
584063
584644
587605
588286
593868
599888
603649
603653
605029
606514
609531
610822
615312
627703
633179
634770
654270
663547
674515
690885
691616
692452
719841
720833
733071
736778
751589
]
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 (78994 , 97156 , 381928 , 387905 , 392178 , 397899 , 398773 , 423940 , 436820 , 451263 , 459857 , 469764 , 472785 , 477354 , 482147 , 484696 , 490261 , 495149 , 516375 , 516643 , 518521 , 526126 , 530289 , 534129 , 534131 , 536399 , 540100 , 544748 , 544751 , 547961 , 550294 , 550665 , 563411 , 567955 , 578017 , 583511 , 584063 , 584644 , 587605 , 588286 , 593868 , 599888 , 603649 , 603653 , 605029 , 606514 , 609531 , 610822 , 615312 , 627703 , 633179 , 634770 , 654270 , 663547 , 674515 , 690885 , 691616 , 692452 , 719841 , 720833 , 733071 , 736778 , 751589 );
Copy