3
14.83 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
737697
485842
532004
561810
464158
540623
549833
718059
813538
797632
451761
416420
419008
511602
585003
608437
520694
473596
787882
463614
567716
559760
478818
636117
455006
505278
591048
521997
809271
521815
499581
466775
736627
790022
798754
793499
560410
697650
621431
793547
816216
815353
547993
689504
497673
698784
728291
741893
451420
437305
542081
553277
687157
714486
542090
553332
565861
697174
633540
449667
450700
417087
623499
456736
555857
497935
596054
]
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 (737697 , 485842 , 532004 , 561810 , 464158 , 540623 , 549833 , 718059 , 813538 , 797632 , 451761 , 416420 , 419008 , 511602 , 585003 , 608437 , 520694 , 473596 , 787882 , 463614 , 567716 , 559760 , 478818 , 636117 , 455006 , 505278 , 591048 , 521997 , 809271 , 521815 , 499581 , 466775 , 736627 , 790022 , 798754 , 793499 , 560410 , 697650 , 621431 , 793547 , 816216 , 815353 , 547993 , 689504 , 497673 , 698784 , 728291 , 741893 , 451420 , 437305 , 542081 , 553277 , 687157 , 714486 , 542090 , 553332 , 565861 , 697174 , 633540 , 449667 , 450700 , 417087 , 623499 , 456736 , 555857 , 497935 , 596054 );
Copy
4
1.78 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
416420
417087
419008
437305
449667
450700
451420
451761
455006
456736
463614
464158
466775
473596
478818
485842
497673
497935
499581
505278
511602
520694
521815
521997
532004
540623
542081
542090
547993
549833
553277
553332
555857
559760
560410
561810
565861
567716
585003
591048
596054
608437
621431
623499
633540
636117
687157
689504
697174
697650
698784
714486
718059
728291
736627
737697
741893
787882
790022
793499
793547
797632
798754
809271
813538
815353
816216
]
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 (416420 , 417087 , 419008 , 437305 , 449667 , 450700 , 451420 , 451761 , 455006 , 456736 , 463614 , 464158 , 466775 , 473596 , 478818 , 485842 , 497673 , 497935 , 499581 , 505278 , 511602 , 520694 , 521815 , 521997 , 532004 , 540623 , 542081 , 542090 , 547993 , 549833 , 553277 , 553332 , 555857 , 559760 , 560410 , 561810 , 565861 , 567716 , 585003 , 591048 , 596054 , 608437 , 621431 , 623499 , 633540 , 636117 , 687157 , 689504 , 697174 , 697650 , 698784 , 714486 , 718059 , 728291 , 736627 , 737697 , 741893 , 787882 , 790022 , 793499 , 793547 , 797632 , 798754 , 809271 , 813538 , 815353 , 816216 );
Copy
5
79.95 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
416420
417087
419008
437305
449667
450700
451420
451761
455006
456736
463614
464158
466775
473596
478818
485842
497673
497935
499581
505278
511602
520694
521815
521997
532004
540623
542081
542090
547993
549833
553277
553332
555857
559760
560410
561810
565861
567716
585003
591048
596054
608437
621431
623499
633540
636117
687157
689504
697174
697650
698784
714486
718059
728291
736627
737697
741893
787882
790022
793499
793547
797632
798754
809271
813538
815353
816216
]
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 (416420 , 417087 , 419008 , 437305 , 449667 , 450700 , 451420 , 451761 , 455006 , 456736 , 463614 , 464158 , 466775 , 473596 , 478818 , 485842 , 497673 , 497935 , 499581 , 505278 , 511602 , 520694 , 521815 , 521997 , 532004 , 540623 , 542081 , 542090 , 547993 , 549833 , 553277 , 553332 , 555857 , 559760 , 560410 , 561810 , 565861 , 567716 , 585003 , 591048 , 596054 , 608437 , 621431 , 623499 , 633540 , 636117 , 687157 , 689504 , 697174 , 697650 , 698784 , 714486 , 718059 , 728291 , 736627 , 737697 , 741893 , 787882 , 790022 , 793499 , 793547 , 797632 , 798754 , 809271 , 813538 , 815353 , 816216 );
Copy