3
8.00 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
603455
780606
811315
721762
771785
641501
788220
732270
743248
723098
798642
533536
681428
705895
708475
593538
793673
793646
806030
538847
594615
815060
532156
804597
594468
736591
797720
813834
521030
574192
711274
590874
594481
744850
793617
532346
529188
533000
529113
674410
676008
813110
809409
793662
772689
809915
461065
532924
525699
513289
563939
593815
585977
793660
793665
454687
565948
718525
788268
529252
684910
587228
640767
678493
643113
]
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 (603455 , 780606 , 811315 , 721762 , 771785 , 641501 , 788220 , 732270 , 743248 , 723098 , 798642 , 533536 , 681428 , 705895 , 708475 , 593538 , 793673 , 793646 , 806030 , 538847 , 594615 , 815060 , 532156 , 804597 , 594468 , 736591 , 797720 , 813834 , 521030 , 574192 , 711274 , 590874 , 594481 , 744850 , 793617 , 532346 , 529188 , 533000 , 529113 , 674410 , 676008 , 813110 , 809409 , 793662 , 772689 , 809915 , 461065 , 532924 , 525699 , 513289 , 563939 , 593815 , 585977 , 793660 , 793665 , 454687 , 565948 , 718525 , 788268 , 529252 , 684910 , 587228 , 640767 , 678493 , 643113 );
Copy
4
2.20 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
454687
461065
513289
521030
525699
529113
529188
529252
532156
532346
532924
533000
533536
538847
563939
565948
574192
585977
587228
590874
593538
593815
594468
594481
594615
603455
640767
641501
643113
674410
676008
678493
681428
684910
705895
708475
711274
718525
721762
723098
732270
736591
743248
744850
771785
772689
780606
788220
788268
793617
793646
793660
793662
793665
793673
797720
798642
804597
806030
809409
809915
811315
813110
813834
815060
]
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 (454687 , 461065 , 513289 , 521030 , 525699 , 529113 , 529188 , 529252 , 532156 , 532346 , 532924 , 533000 , 533536 , 538847 , 563939 , 565948 , 574192 , 585977 , 587228 , 590874 , 593538 , 593815 , 594468 , 594481 , 594615 , 603455 , 640767 , 641501 , 643113 , 674410 , 676008 , 678493 , 681428 , 684910 , 705895 , 708475 , 711274 , 718525 , 721762 , 723098 , 732270 , 736591 , 743248 , 744850 , 771785 , 772689 , 780606 , 788220 , 788268 , 793617 , 793646 , 793660 , 793662 , 793665 , 793673 , 797720 , 798642 , 804597 , 806030 , 809409 , 809915 , 811315 , 813110 , 813834 , 815060 );
Copy
5
117.15 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
454687
461065
513289
521030
525699
529113
529188
529252
532156
532346
532924
533000
533536
538847
563939
565948
574192
585977
587228
590874
593538
593815
594468
594481
594615
603455
640767
641501
643113
674410
676008
678493
681428
684910
705895
708475
711274
718525
721762
723098
732270
736591
743248
744850
771785
772689
780606
788220
788268
793617
793646
793660
793662
793665
793673
797720
798642
804597
806030
809409
809915
811315
813110
813834
815060
]
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 (454687 , 461065 , 513289 , 521030 , 525699 , 529113 , 529188 , 529252 , 532156 , 532346 , 532924 , 533000 , 533536 , 538847 , 563939 , 565948 , 574192 , 585977 , 587228 , 590874 , 593538 , 593815 , 594468 , 594481 , 594615 , 603455 , 640767 , 641501 , 643113 , 674410 , 676008 , 678493 , 681428 , 684910 , 705895 , 708475 , 711274 , 718525 , 721762 , 723098 , 732270 , 736591 , 743248 , 744850 , 771785 , 772689 , 780606 , 788220 , 788268 , 793617 , 793646 , 793660 , 793662 , 793665 , 793673 , 797720 , 798642 , 804597 , 806030 , 809409 , 809915 , 811315 , 813110 , 813834 , 815060 );
Copy